Class XmlStorageElement

  • All Implemented Interfaces:
    ICStorageElement

    @Deprecated
    public class XmlStorageElement
    extends Object
    implements ICStorageElement
    Deprecated.
    Restriction:
    This class is not intended to be subclassed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Constructor Detail

      • XmlStorageElement

        public XmlStorageElement​(Element element)
        Deprecated.
      • XmlStorageElement

        public XmlStorageElement​(Element element,
                                 ICStorageElement parent,
                                 boolean alowReferencingParent)
        Deprecated.
      • XmlStorageElement

        public XmlStorageElement​(Element element,
                                 ICStorageElement parent,
                                 boolean alowReferencingParent,
                                 String[] attributeFilters,
                                 String[] childFilters)
        Deprecated.
    • Method Detail

      • getChildren

        public ICStorageElement[] getChildren()
        Deprecated.
        Description copied from interface: ICStorageElement
        Returns an array of the ICStorageElement children of this ICStorageElement or an empty array if no children were found
        Specified by:
        getChildren in interface ICStorageElement
        Returns:
        ICStorageElement[] of children or empty array
      • getChildren

        protected ICStorageElement[] getChildren​(boolean load)
        Deprecated.
      • getParent

        public ICStorageElement getParent()
        Deprecated.
        Description copied from interface: ICStorageElement
        Return the parent IStorageElement or null if this ICStorageElement doesn't have a parent
        Specified by:
        getParent in interface ICStorageElement
        Returns:
        ICStorageElement parent or null
      • getAttribute

        public String getAttribute​(String name)
        Deprecated.
        Description copied from interface: ICStorageElement
        Return the String of attribute value for name. If attribute is not found (hasAttribute(name) is false) this method returns null
        Specified by:
        getAttribute in interface ICStorageElement
        Returns:
        String value or null if hasAttribute is false
      • removed

        protected void removed()
        Deprecated.
      • clear

        public void clear()
        Deprecated.
        Description copied from interface: ICStorageElement
        Erases all children, attributes and any value set on this ICStorageElement
        Specified by:
        clear in interface ICStorageElement
      • getValue

        public String getValue()
        Deprecated.
        Description copied from interface: ICStorageElement
        Returns the String value of this element or null if there is no String value set. NB a pure whitespace value is considered to be null
        Specified by:
        getValue in interface ICStorageElement
        Returns:
        String or null
      • getAttributeFilters

        public String[] getAttributeFilters()
        Deprecated.
      • getChildFilters

        public String[] getChildFilters()
        Deprecated.
      • isParentRefAlowed

        public boolean isParentRefAlowed()
        Deprecated.
      • createCopy

        public ICStorageElement createCopy()
                                    throws UnsupportedOperationException,
                                           org.eclipse.core.runtime.CoreException
        Deprecated.
        Description copied from interface: ICStorageElement
        Create a deep copy of the current ICStorageElement such that name, children, attributes and value are the same.
        However this is implemented it should appear to the user that a deep copy of the elements within has occurred. [ Though the implementation may be copy-on-write if the underlying data structure is suitable. ]

        getParent() of the clone should be equal to the original element.getParent(). However the clone() doesn't appear in the parent's getChildren() array.
        Specified by:
        createCopy in interface ICStorageElement
        Returns:
        ICStorageElement deep copy of this ICStorageElement
        Throws:
        UnsupportedOperationException
        org.eclipse.core.runtime.CoreException
        Since:
        5.1
      • equals

        public boolean equals​(ICStorageElement other)
        Deprecated.
        Description copied from interface: ICStorageElement
        Tests whether this storage element is exactly equal to other To be equal all name, children attributes and value must be equal between the two ICStorageElements
        Specified by:
        equals in interface ICStorageElement
        Returns:
        boolean indicating equality
        Since:
        5.1
      • getChildrenByName

        public ICStorageElement[] getChildrenByName​(String name)
        Deprecated.
        Description copied from interface: ICStorageElement
        Returns the children ICStorageElements with name name
        Specified by:
        getChildrenByName in interface ICStorageElement
        Parameters:
        name - String name of children to be returned
        Returns:
        ICStorageElement[] of children may be the empty list if no children with name found
        Since:
        5.1
      • hasAttribute

        public boolean hasAttribute​(String name)
        Deprecated.
        Description copied from interface: ICStorageElement
        Return whether this ICStorageElement contains an attribute value for name
        Specified by:
        hasAttribute in interface ICStorageElement
        Returns:
        boolean indicating existence of attribute with name name
        Since:
        5.1
      • hasChildren

        public boolean hasChildren()
        Deprecated.
        Description copied from interface: ICStorageElement
        Returns true if this storage element has child ICStorageElements
        Specified by:
        hasChildren in interface ICStorageElement
        Returns:
        boolean indicating whether this ICStorageElement has children
        Since:
        5.1