XmpRational
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.PropertyValue, com.groupdocs.metadata.core.XmpValueBase
public final class XmpRational extends XmpValueBase
Represents XMP XmpRational.
| 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. |
| 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. |
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. |
public XmpRational(String value)
Initializes a new instance of the XmpBoolean class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The value. |
public final long getNumerator()
Gets numerator.
Returns: long - The numerator.
public final long getDenominator()
Gets denominator
Returns: long - The denominator.
public final double getDoubleValue()
Gets value of rational type presented in double format.
Returns: double - Double value.
public String getXmpRepresentation()
Returns string contained value in XMP format.
Returns: java.lang.String - string contained XMP representation.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.