Class ScopedProperty<E>

  • Type Parameters:
    E - The type of the property.

    class ScopedProperty<E>
    extends java.lang.Object
    Used to handle properties that have a scope such as the base URI, the xml:lang property.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] depths  
      private int size  
      private java.util.List<E> values  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(E value)
      Add a new value.
      void decrDepth()
      Decrements the depth of the current value, and remove it if necessary.
      E getValue()
      Returns the current value.
      void incrDepth()
      Increments the depth of the current value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • depths

        private int[] depths
      • size

        private int size
      • values

        private java.util.List<E> values
    • Constructor Detail

      • ScopedProperty

        public ScopedProperty()
        Constructor.
      • ScopedProperty

        public ScopedProperty​(E value)
        Constructor.
        Parameters:
        value - Value.
    • Method Detail

      • add

        public void add​(E value)
        Add a new value.
        Parameters:
        value - The value to be added.
      • decrDepth

        public void decrDepth()
        Decrements the depth of the current value, and remove it if necessary.
      • getValue

        public E getValue()
        Returns the current value.
        Returns:
        The current value.
      • incrDepth

        public void incrDepth()
        Increments the depth of the current value.