XmpTime

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage, com.groupdocs.metadata.core.XmpMetadataContainer, com.groupdocs.metadata.core.XmpComplexType

public final class XmpTime extends XmpComplexType

Representation of a time value in seconds.

Constructors

Constructor Description
XmpTime() Initializes a new instance of the XmpTime class.
XmpTime(XmpRational scale, int value) Initializes a new instance of the XmpTime class.

Methods

Method Description
getScale() Gets the scale for the time value.
setScale(XmpRational value) Sets the scale for the time value.
getValue() Gets the time value in the specified scale.
setValue(Integer value) Sets the time value in the specified scale.

XmpTime()

public XmpTime()

Initializes a new instance of the XmpTime class.

XmpTime(XmpRational scale, int value)

public XmpTime(XmpRational scale, int value)

Initializes a new instance of the XmpTime class.

Parameters:

Parameter Type Description
scale XmpRational The scale.
value int The value.

getScale()

public final XmpRational getScale()

Gets the scale for the time value.

Returns: XmpRational - The scale for the time value. For NTSC, use 1001/30000, or the less accurate 100/2997.

For PAL, use 1/25.

setScale(XmpRational value)

public final void setScale(XmpRational value)

Sets the scale for the time value.

Parameters:

Parameter Type Description
value XmpRational The scale for the time value. For NTSC, use 1001/30000, or the less accurate 100/2997.

For PAL, use 1/25. |

getValue()

public final Integer getValue()

Gets the time value in the specified scale.

Returns: java.lang.Integer - The time value in the specified scale.

setValue(Integer value)

public final void setValue(Integer value)

Sets the time value in the specified scale.

Parameters:

Parameter Type Description
value java.lang.Integer The time value in the specified scale.