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 scale for the time value.
|
int |
getValue()
Gets time value in the specified scale.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
void |
setScale(XmpRational value)
Sets scale for the time value.
|
void |
setValue(int value)
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 scale for the time value.
public final void setScale(XmpRational value)
Sets scale for the time value.
value
- The scale.public final int getValue()
Gets time value in the specified scale.
public final void setValue(int value)
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 © 2018. All rights reserved.