Class Element

    • Constructor Detail

      • Element

        public Element​(IElement parent,
                       java.lang.String name)
        Constructs a handle for an element with the given parent element and the given name.
        Parameters:
        parent - the parent of the element, or null if the element has no parent
        name - the name of the element, or null if the element has no name
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface IElement
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface IElement
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName_

        public final java.lang.String getName_()
        Description copied from interface: IElementImpl
        Returns the name of this element, or null if this element has no name. This is a handle-only method.
        Specified by:
        getName_ in interface IElementImpl
        Returns:
        the element name, or null if this element has no name
      • getParent_

        public final IElement getParent_()
        Description copied from interface: IElementImpl
        Returns the element directly containing this element, or null if this element has no parent. This is a handle-only method.
        Specified by:
        getParent_ in interface IElementImpl
        Returns:
        the parent element, or null if this element has no parent