Class MediaTimeImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.MediaTimeImpl
- All Implemented Interfaces:
XmlElement,MediaTime
- Direct Known Subclasses:
MediaRelTimeImpl
TODO: Comment me!
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MediaDurationThe media durationprotected MediaTimePointThe media time point -
Constructor Summary
ConstructorsConstructorDescriptionMediaTimeImpl(long time, long duration) Creates a media time object from the given long values for timepoint and duration.MediaTimeImpl(MediaTimePoint timePoint, MediaDuration duration) Creates a media time object representing the given timepoint and duration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the media duration.Returns the media time point, i. e. the starting time of the vidoe segement.static MediaTimeParses a media time and duration.Returns an xml node representation of this element.
-
Field Details
-
mediaTimePoint
The media time point -
mediaDuration
The media duration
-
-
Constructor Details
-
MediaTimeImpl
Creates a media time object representing the given timepoint and duration.- Parameters:
timePoint- the time pointduration- the duration
-
MediaTimeImpl
public MediaTimeImpl(long time, long duration) Creates a media time object from the given long values for timepoint and duration.- Parameters:
time- the time in millisecondsduration- the duration in milliseconds
-
-
Method Details
-
getMediaDuration
Description copied from interface:MediaTimeReturns the media duration.- Specified by:
getMediaDurationin interfaceMediaTime- Returns:
- the media duration
- See Also:
-
getMediaTimePoint
Description copied from interface:MediaTimeReturns the media time point, i. e. the starting time of the vidoe segement.- Specified by:
getMediaTimePointin interfaceMediaTime- Returns:
- the media time point
- See Also:
-
parse
Parses a media time and duration.- Parameters:
time-duration-- Returns:
- the
-
toXml
Description copied from interface:XmlElementReturns an xml node representation of this element.- Specified by:
toXmlin interfaceXmlElement- Parameters:
document- the enclosing xml document- Returns:
- the xml node
- See Also:
-