public final class Time extends XmpTypeBase
Representation of a time value in seconds.
Constructor and Description |
---|
Time(XmpRational scale,
int value)
Initializes a new instance of the
Time class. |
Modifier and Type | Method and Description |
---|---|
XmpRational |
getScale()
Gets or sets scale for the time value.
|
int |
getValue()
Gets or sets time value in the specified scale.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
void |
setScale(XmpRational value)
Gets or sets scale for the time value.
|
void |
setValue(int value)
Gets or sets time value in the specified scale.
|
toBool, toDateTime, toFloat, toGuid, toInt, toString, toStringArray
public Time(XmpRational scale, int value)
Initializes a new instance of the Time
class.
scale
- The scale.value
- The value.public final XmpRational getScale()
Gets or sets scale for the time value.
Value: The scale.public final void setScale(XmpRational value)
Gets or sets scale for the time value.
Value: The scale.public final int getValue()
Gets or sets time value in the specified scale.
Value: The value.public final void setValue(int value)
Gets or sets time value in the specified scale.
Value: The value.public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpTypeBase
string
contained XMP representation.Copyright © 2017. All rights reserved.