Class XmlStorageElement
java.lang.Object
org.eclipse.cdt.core.settings.model.util.XmlStorageElement
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionXmlStorageElement(Element element) Deprecated.XmlStorageElement(Element element, ICStorageElement parent, boolean alowReferencingParent) Deprecated.XmlStorageElement(Element element, ICStorageElement parent, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddChild(ICStorageElement el, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated.voidclear()Deprecated.Erases all children, attributes and any value set on this ICStorageElementcreateChild(String name) Deprecated.Create a child ICStorageElement with the given name.createChild(String name, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated.protected XmlStorageElementcreateChild(Element element, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated.Deprecated.Create a deep copy of the current ICStorageElement such that name, children, attributes and value are the same.booleanequals(ICStorageElement other) Deprecated.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 ICStorageElementsgetAttribute(String name) Deprecated.Return the String of attribute value for name.String[]Deprecated.String[]Deprecated.Returns a string array of attribute namesString[]Deprecated.Deprecated.Returns an array of the ICStorageElement children of this ICStorageElement or an empty array if no children were foundprotected ICStorageElement[]getChildren(boolean load) Deprecated.protected ICStorageElement[]getChildren(Class<XmlStorageElement> clazz) Deprecated.protected ICStorageElement[]getChildren(Class<XmlStorageElement> clazz, boolean load) Deprecated.getChildrenByName(String name) Deprecated.Returns the children ICStorageElements with name namegetName()Deprecated.Returns the name of this ICStorageElementDeprecated.Return the parent IStorageElement or null if this ICStorageElement doesn't have a parentgetValue()Deprecated.Returns the String value of this element or null if there is no String value set.booleanhasAttribute(String name) Deprecated.Return whether this ICStorageElement contains an attribute value for namebooleanDeprecated.Returns true if this storage element has child ICStorageElementsDeprecated.Imports an existing ICStorageElemtn as a child of this ICStorageElementbooleanDeprecated.booleanDeprecated.voidremoveAttribute(String name) Deprecated.Remove an attribute from this ICStorageElementvoidDeprecated.Removes the ICStorageElement from the set of child ICSotrageElementsprotected voidremoved()Deprecated.voidsetAttribute(String name, String value) Deprecated.Set an attribute on this ICStorageElementvoidDeprecated.Sets a String value on the ICStorageElement
-
Constructor Details
-
XmlStorageElement
Deprecated. -
XmlStorageElement
Deprecated. -
XmlStorageElement
public XmlStorageElement(Element element, ICStorageElement parent, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated.
-
-
Method Details
-
createChild
protected XmlStorageElement createChild(Element element, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated. -
getChildren
Deprecated.Description copied from interface:ICStorageElementReturns an array of the ICStorageElement children of this ICStorageElement or an empty array if no children were found- Specified by:
getChildrenin interfaceICStorageElement- Returns:
- ICStorageElement[] of children or empty array
-
getChildren
Deprecated. -
getChildren
Deprecated. -
getChildren
Deprecated. -
getParent
Deprecated.Description copied from interface:ICStorageElementReturn the parent IStorageElement or null if this ICStorageElement doesn't have a parent- Specified by:
getParentin interfaceICStorageElement- Returns:
- ICStorageElement parent or null
-
getAttribute
Deprecated.Description copied from interface:ICStorageElementReturn the String of attribute value for name. If attribute is not found (hasAttribute(name) is false) this method returns null- Specified by:
getAttributein interfaceICStorageElement- Parameters:
name-- Returns:
- String value or null if hasAttribute is false
-
removed
protected void removed()Deprecated. -
removeChild
Deprecated.Description copied from interface:ICStorageElementRemoves the ICStorageElement from the set of child ICSotrageElements- Specified by:
removeChildin interfaceICStorageElement- Parameters:
el-
-
removeAttribute
Deprecated.Description copied from interface:ICStorageElementRemove an attribute from this ICStorageElement- Specified by:
removeAttributein interfaceICStorageElement- Parameters:
name-
-
setAttribute
Deprecated.Description copied from interface:ICStorageElementSet an attribute on this ICStorageElement- Specified by:
setAttributein interfaceICStorageElement- Parameters:
name-value-
-
clear
public void clear()Deprecated.Description copied from interface:ICStorageElementErases all children, attributes and any value set on this ICStorageElement- Specified by:
clearin interfaceICStorageElement
-
createChild
public ICStorageElement createChild(String name, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) Deprecated. -
getName
Deprecated.Description copied from interface:ICStorageElementReturns the name of this ICStorageElement- Specified by:
getNamein interfaceICStorageElement
-
createChild
Deprecated.Description copied from interface:ICStorageElementCreate a child ICStorageElement with the given name.- Specified by:
createChildin interfaceICStorageElement- Parameters:
name-- Returns:
- new ICStorageElement representing the child
-
getValue
Deprecated.Description copied from interface:ICStorageElementReturns 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:
getValuein interfaceICStorageElement- Returns:
- String or null
-
setValue
Deprecated.Description copied from interface:ICStorageElementSets a String value on the ICStorageElement- Specified by:
setValuein interfaceICStorageElement- Parameters:
value-
-
importChild
Deprecated.Description copied from interface:ICStorageElementImports an existing ICStorageElemtn as a child of this ICStorageElement- Specified by:
importChildin interfaceICStorageElement- Parameters:
el-- Returns:
- ICStorageElement a handle on the newly imported ICStorageElement
- Throws:
UnsupportedOperationException
-
addChild
public ICStorageElement addChild(ICStorageElement el, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) throws UnsupportedOperationException Deprecated.- Throws:
UnsupportedOperationException
-
getAttributeFilters
Deprecated. -
getChildFilters
Deprecated. -
isParentRefAlowed
public boolean isParentRefAlowed()Deprecated. -
matches
Deprecated. -
getAttributeNames
Deprecated.Description copied from interface:ICStorageElementReturns a string array of attribute names- Specified by:
getAttributeNamesin interfaceICStorageElement
-
createCopy
public ICStorageElement createCopy() throws UnsupportedOperationException, org.eclipse.core.runtime.CoreExceptionDeprecated.Description copied from interface:ICStorageElementCreate 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:
createCopyin interfaceICStorageElement- Returns:
- ICStorageElement deep copy of this ICStorageElement
- Throws:
UnsupportedOperationExceptionorg.eclipse.core.runtime.CoreException- Since:
- 5.1
-
equals
Deprecated.Description copied from interface:ICStorageElementTests 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:
equalsin interfaceICStorageElement- Parameters:
other-- Returns:
- boolean indicating equality
- Since:
- 5.1
-
getChildrenByName
Deprecated.Description copied from interface:ICStorageElementReturns the children ICStorageElements with name name- Specified by:
getChildrenByNamein interfaceICStorageElement- 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
Deprecated.Description copied from interface:ICStorageElementReturn whether this ICStorageElement contains an attribute value for name- Specified by:
hasAttributein interfaceICStorageElement- Parameters:
name-- Returns:
- boolean indicating existence of attribute with name name
- Since:
- 5.1
-
hasChildren
public boolean hasChildren()Deprecated.Description copied from interface:ICStorageElementReturns true if this storage element has child ICStorageElements- Specified by:
hasChildrenin interfaceICStorageElement- Returns:
- boolean indicating whether this ICStorageElement has children
- Since:
- 5.1
-