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.
|
toStringacceptValue, getEmpty, getRawValue, getType, toArray, toClasspublic 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 getDenominator()
Gets denominator
public final double getDoubleValue()
Gets value of rational type presented in double format.
public final long getNumerator()
Gets numerator.
public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation in interface IXmpTypegetXmpRepresentation in class XmpValueBasestring contained XMP representation.Copyright © 2025. All rights reserved.