Class LengthProperty

    • Constructor Detail

      • LengthProperty

        public LengthProperty()
    • Method Detail

      • getDimension

        public int getDimension()
        Description copied from interface: Numeric
        Return the dimension of this numeric. Plain numbers has a dimension of 0 and length has a dimension of 1. Other dimension can occur as a result of multiplications and divisions.
        Specified by:
        getDimension in interface Numeric
        Returns:
        the numeric dimension. Length always a dimension of 1
      • getNumeric

        public Numeric getNumeric()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getNumeric in class Property
        Returns:
        this.length cast as a Numeric
      • getLength

        public Length getLength()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getLength in class Property
        Returns:
        this.length
      • getObject

        public java.lang.Object getObject()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getObject in class Property
        Returns:
        this.length cast as an Object