XmpRational
Contents
[
Hide
]
Inheritance: java.lang.Object, com.groupdocs.metadata.core.PropertyValue, com.groupdocs.metadata.core.XmpValueBase
public final class XmpRational extends XmpValueBase
Represents XMP XmpRational.
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
getNumerator() | Gets numerator. |
getDenominator() | Gets denominator |
getDoubleValue() | Gets value of rational type presented in double format. |
getXmpRepresentation() | Returns string contained value in XMP format. |
XmpRational(long numerator, long denominator)
public XmpRational(long numerator, long denominator)
Initializes a new instance of the XmpRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
numerator | long | The numerator. |
denominator | long | The denominator. |
XmpRational(String value)
public XmpRational(String value)
Initializes a new instance of the XmpBoolean class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The value. |
getNumerator()
public final long getNumerator()
Gets numerator.
Returns: long - The numerator.
getDenominator()
public final long getDenominator()
Gets denominator
Returns: long - The denominator.
getDoubleValue()
public final double getDoubleValue()
Gets value of rational type presented in double format.
Returns: double - Double value.
getXmpRepresentation()
public String getXmpRepresentation()
Returns string contained value in XMP format.
Returns: java.lang.String - string contained XMP representation.