public final class XmpTime extends XmpComplexType
Representation of a time value in seconds.
Constructor and Description |
---|
XmpTime()
Initializes a new instance of the
XmpTime class. |
XmpTime(XmpRational scale,
int value)
Initializes a new instance of the
XmpTime class. |
Modifier and Type | Method and Description |
---|---|
XmpRational |
getScale()
Gets the scale for the time value.
|
Integer |
getValue()
Gets the time value in the specified scale.
|
void |
setScale(XmpRational value)
Sets the scale for the time value.
|
void |
setValue(Integer value)
Sets the time value in the specified scale.
|
getNamespaceUri, getNamespaceUris, getPrefixes, getXmpRepresentation, toString
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
public XmpTime()
Initializes a new instance of the XmpTime
class.
public XmpTime(XmpRational scale, int value)
Initializes a new instance of the XmpTime
class.
scale
- The scale.value
- The value.public final XmpRational getScale()
Gets the scale for the time value.
<br></br>
For PAL, use 1/25.public final void setScale(XmpRational value)
Sets the scale for the time value.
value
- The scale for the time value.
For NTSC, use 1001/30000, or the less accurate 100/2997.
<br></br>
For PAL, use 1/25.public final Integer getValue()
Gets the time value in the specified scale.
public final void setValue(Integer value)
Sets the time value in the specified scale.
value
- The time value in the specified scale.