Class RationalType

  • All Implemented Interfaces:
    Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2
    Direct Known Subclasses:
    FrameRateType, TimeBaseType

    public class RationalType
    extends Object
    implements Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2

    Java class for RationalType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="RationalType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="numerator" type="{http://www.w3.org/2001/XMLSchema}int"/>
             <element name="denominator" type="{http://www.w3.org/2001/XMLSchema}int"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Detail

      • numerator

        protected int numerator
      • denominator

        protected int denominator
    • Constructor Detail

      • RationalType

        public RationalType()
    • Method Detail

      • getNumerator

        public int getNumerator()
        Gets the value of the numerator property.
      • setNumerator

        public void setNumerator​(int value)
        Sets the value of the numerator property.
      • isSetNumerator

        public boolean isSetNumerator()
      • getDenominator

        public int getDenominator()
        Gets the value of the denominator property.
      • setDenominator

        public void setDenominator​(int value)
        Sets the value of the denominator property.
      • isSetDenominator

        public boolean isSetDenominator()
      • copyTo

        public Object copyTo​(Object target)
        Specified by:
        copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • copyTo

        public Object copyTo​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                             Object target,
                             org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)
        Specified by:
        copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • createNewInstance

        public Object createNewInstance()
        Specified by:
        createNewInstance in interface org.jvnet.jaxb2_commons.lang.CopyTo2
      • withNumerator

        public RationalType withNumerator​(int value)
      • withDenominator

        public RationalType withDenominator​(int value)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      • visit

        public RationalType visit​(com.kscs.util.jaxb.PropertyVisitor _visitor_)
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object