Class MediaRelTimePointImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.MediaTimePointImpl
org.opencastproject.metadata.mpeg7.MediaRelTimePointImpl
- All Implemented Interfaces:
XmlElement,MediaTimePoint
Implementation of a relative
TimePoint.-
Field Summary
Fields inherited from class org.opencastproject.metadata.mpeg7.MediaTimePointImpl
day, fractions, fractionsPerSecond, hour, minute, month, second, timeZone, year -
Constructor Summary
ConstructorsConstructorDescriptionCreates a relative time point atT00:00:00:0F1000.MediaRelTimePointImpl(int hour, int minute, int second, int fraction, int fractionsPerSecond) MediaRelTimePointImpl(long milliseconds) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static MediaRelTimePointImplparseTimePoint(String text) Creates a relative timepoint representation from the given time point string.toString()Returns an xml node representation of this element.Methods inherited from class org.opencastproject.metadata.mpeg7.MediaTimePointImpl
getDay, getFractionsPerSecond, getHour, getMinutes, getMonth, getNFractions, getSeconds, getTimeInMilliseconds, getTimeZone, getYear, isRelative, parseDate, parseTime, setDay, setFractions, setFractionsPerSecond, setHour, setMinutes, setMonth, setReferenceTimePoint, setSeconds, setTimeZone, setYearMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opencastproject.metadata.mpeg7.MediaTimePoint
getDay, getFractionsPerSecond, getHour, getMinutes, getMonth, getNFractions, getSeconds, getTimeInMilliseconds, getYear, isRelative
-
Constructor Details
-
MediaRelTimePointImpl
public MediaRelTimePointImpl()Creates a relative time point atT00:00:00:0F1000. -
MediaRelTimePointImpl
public MediaRelTimePointImpl(long milliseconds) - Parameters:
milliseconds-
-
MediaRelTimePointImpl
public MediaRelTimePointImpl(int hour, int minute, int second, int fraction, int fractionsPerSecond) - Parameters:
hour- the number of hoursminute- the number of minutessecond- the number of secondsfraction- the number of fractionsfractionsPerSecond- the number of fractions per second
-
-
Method Details
-
parseTimePoint
Creates a relative timepoint representation from the given time point string.- Parameters:
text- the timepoint text representation- Returns:
- the the timepoint
- Throws:
IllegalArgumentException- iftextis malformed
-
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toStringin classMediaTimePointImpl- See Also:
-
toXml
Description copied from interface:XmlElementReturns an xml node representation of this element.- Specified by:
toXmlin interfaceXmlElement- Overrides:
toXmlin classMediaTimePointImpl- Parameters:
document- the enclosing xml document- Returns:
- the xml node
- See Also:
-