com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class XmpRational

  • All Implemented Interfaces:
    IXmpType


    public final class XmpRational
    extends XmpValueBase

    Represents XMP XmpRational.

    • Constructor Detail

      • XmpRational

        public XmpRational(long numerator,
                   long denominator)

        Initializes a new instance of the XmpRational class.

        Parameters:
        numerator - The numerator.
        denominator - The denominator.
      • XmpRational

        public XmpRational(String value)

        Initializes a new instance of the XmpBoolean class.

        Parameters:
        value - The value.
        Throws:
        ArgumentNullException - Value could not be null.
        ArgumentException - Invalid string value.
    • Method Detail

      • getNumerator

        public final long getNumerator()

        Gets numerator.

        Returns:
        The numerator.
      • getDenominator

        public final long getDenominator()

        Gets denominator

        Returns:
        The denominator.
      • getDoubleValue

        public final double getDoubleValue()

        Gets value of rational type presented in double format.

        Returns:
        Double value.