@Deprecated public class XmlStorageElement extends Object implements ICStorageElement
| Constructor and Description |
|---|
XmlStorageElement(Element element)
Deprecated.
|
XmlStorageElement(Element element,
ICStorageElement parent,
boolean alowReferencingParent)
Deprecated.
|
XmlStorageElement(Element element,
ICStorageElement parent,
boolean alowReferencingParent,
String[] attributeFilters,
String[] childFilters)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ICStorageElement |
addChild(ICStorageElement el,
boolean alowReferencingParent,
String[] attributeFilters,
String[] childFilters)
Deprecated.
|
void |
clear()
Deprecated.
Erases all children, attributes and any value set on this ICStorageElement
|
protected XmlStorageElement |
createChild(Element element,
boolean alowReferencingParent,
String[] attributeFilters,
String[] childFilters)
Deprecated.
|
ICStorageElement |
createChild(String name)
Deprecated.
Create a child ICStorageElement with the given name.
|
ICStorageElement |
createChild(String name,
boolean alowReferencingParent,
String[] attributeFilters,
String[] childFilters)
Deprecated.
|
ICStorageElement |
createCopy()
Deprecated.
Create a deep copy of the current ICStorageElement such that name, children, attributes and value
are the same.
|
boolean |
equals(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 ICStorageElements
|
String |
getAttribute(String name)
Deprecated.
Return the String of attribute value for name.
|
String[] |
getAttributeFilters()
Deprecated.
|
String[] |
getAttributeNames()
Deprecated.
Returns a string array of attribute names
|
String[] |
getChildFilters()
Deprecated.
|
ICStorageElement[] |
getChildren()
Deprecated.
Returns an array of the ICStorageElement children of this
ICStorageElement or an empty array if no children were found
|
protected ICStorageElement[] |
getChildren(boolean load)
Deprecated.
|
protected ICStorageElement[] |
getChildren(Class<XmlStorageElement> clazz)
Deprecated.
|
protected ICStorageElement[] |
getChildren(Class<XmlStorageElement> clazz,
boolean load)
Deprecated.
|
ICStorageElement[] |
getChildrenByName(String name)
Deprecated.
Returns the children ICStorageElements with name name
|
String |
getName()
Deprecated.
Returns the name of this ICStorageElement
|
ICStorageElement |
getParent()
Deprecated.
Return the parent IStorageElement or null if this
ICStorageElement doesn't have a parent
|
String |
getValue()
Deprecated.
Returns the String value of this element or null if there is no String value set.
|
boolean |
hasAttribute(String name)
Deprecated.
Return whether this ICStorageElement contains an attribute value
for name
|
boolean |
hasChildren()
Deprecated.
Returns true if this storage element has child ICStorageElements
|
ICStorageElement |
importChild(ICStorageElement el)
Deprecated.
Imports an existing ICStorageElemtn as a child of this ICStorageElement
|
boolean |
isParentRefAlowed()
Deprecated.
|
boolean |
matches(ICStorageElement el)
Deprecated.
|
void |
removeAttribute(String name)
Deprecated.
Remove an attribute from this ICStorageElement
|
void |
removeChild(ICStorageElement el)
Deprecated.
Removes the ICStorageElement from the set of child ICSotrageElements
|
protected void |
removed()
Deprecated.
|
void |
setAttribute(String name,
String value)
Deprecated.
Set an attribute on this ICStorageElement
|
void |
setValue(String value)
Deprecated.
Sets a String value on the ICStorageElement
|
public XmlStorageElement(Element element)
public XmlStorageElement(Element element, ICStorageElement parent, boolean alowReferencingParent)
public XmlStorageElement(Element element, ICStorageElement parent, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters)
protected XmlStorageElement createChild(Element element, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters)
public ICStorageElement[] getChildren()
ICStorageElementgetChildren in interface ICStorageElementprotected ICStorageElement[] getChildren(Class<XmlStorageElement> clazz)
protected ICStorageElement[] getChildren(boolean load)
protected ICStorageElement[] getChildren(Class<XmlStorageElement> clazz, boolean load)
public ICStorageElement getParent()
ICStorageElementgetParent in interface ICStorageElementpublic String getAttribute(String name)
ICStorageElementgetAttribute in interface ICStorageElementprotected void removed()
public void removeChild(ICStorageElement el)
ICStorageElementremoveChild in interface ICStorageElementpublic void removeAttribute(String name)
ICStorageElementremoveAttribute in interface ICStorageElementpublic void setAttribute(String name, String value)
ICStorageElementsetAttribute in interface ICStorageElementpublic void clear()
ICStorageElementclear in interface ICStorageElementpublic ICStorageElement createChild(String name, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters)
public String getName()
ICStorageElementgetName in interface ICStorageElementpublic ICStorageElement createChild(String name)
ICStorageElementcreateChild in interface ICStorageElementpublic String getValue()
ICStorageElementgetValue in interface ICStorageElementpublic void setValue(String value)
ICStorageElementsetValue in interface ICStorageElementpublic ICStorageElement importChild(ICStorageElement el) throws UnsupportedOperationException
ICStorageElementimportChild in interface ICStorageElementUnsupportedOperationExceptionpublic ICStorageElement addChild(ICStorageElement el, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic String[] getAttributeFilters()
public String[] getChildFilters()
public boolean isParentRefAlowed()
public boolean matches(ICStorageElement el)
public String[] getAttributeNames()
ICStorageElementgetAttributeNames in interface ICStorageElementpublic ICStorageElement createCopy() throws UnsupportedOperationException, org.eclipse.core.runtime.CoreException
ICStorageElementcreateCopy in interface ICStorageElementUnsupportedOperationExceptionorg.eclipse.core.runtime.CoreExceptionpublic boolean equals(ICStorageElement other)
ICStorageElementequals in interface ICStorageElementpublic ICStorageElement[] getChildrenByName(String name)
ICStorageElementgetChildrenByName in interface ICStorageElementname - String name of children to be returnedpublic boolean hasAttribute(String name)
ICStorageElementhasAttribute in interface ICStorageElementpublic boolean hasChildren()
ICStorageElementhasChildren in interface ICStorageElementCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.