public final class XmpRational extends XmpValueBase
Represents XMP XmpRational.
Constructor and Description |
---|
XmpRational(long numerator,
long denominator)
Initializes a new instance of the
XmpRational class. |
XmpRational(String value)
Initializes a new instance of the
XmpBoolean class. |
Modifier and Type | Method and Description |
---|---|
long |
getDenominator()
Gets denominator
|
double |
getDoubleValue()
Gets value of rational type presented in double format.
|
long |
getNumerator()
Gets numerator.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
toString
acceptValue, getRawValue, getType, toArray, toClass
public XmpRational(long numerator, long denominator)
Initializes a new instance of the XmpRational
class.
numerator
- The numerator.denominator
- The denominator.public XmpRational(String value)
Initializes a new instance of the XmpBoolean
class.
value
- The value.ArgumentNullException
- Value could not be null.ArgumentException
- Invalid string value.public final long getNumerator()
Gets numerator.
public final long getDenominator()
Gets denominator
public final double getDoubleValue()
Gets value of rational type presented in double format.
public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpValueBase
string
contained XMP representation.