Class Component

  • All Implemented Interfaces:
    Property, PropertyWalk

    public class Component
    extends Element
    The Component class represents a configuration resource component.
    • Method Detail

      • getInformation

        public java.lang.String getInformation​(int deep)
                                        throws PoolsException
        Returns a descriptive string which describes the component.
        Specified by:
        getInformation in class Element
        Parameters:
        deep - Whether the information should contain information about all contained elements.
        Returns:
        a descriptive string which describes the component.
        Throws:
        PoolsException - If the component cannot be located.
      • toString

        public java.lang.String toString()
        Returns a string representation of this component.
        Overrides:
        toString in class Element
        Returns:
        a string representation of this component.
      • equals

        public boolean equals​(java.lang.Object o)
        Indicates whether some other Component is "equal to this one.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the reference object with which to compare.
        Returns:
        true if this object is the same as the o argument; false otherwise.
        See Also:
        hashCode()
      • hashCode

        public int hashCode()
        Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for this object.
        See Also:
        equals(java.lang.Object), Hashtable
      • getElem

        protected long getElem()
                        throws PoolsException
        Return the pointer to this component as an element.
        Specified by:
        getElem in class Element
        Returns:
        The pointer to the native component which this object wraps.
        Throws:
        PoolsException - If there is an error converting the native component pointer to a native elem pointer.