@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()
ICStorageElement
getChildren
in interface ICStorageElement
protected ICStorageElement[] getChildren(Class<XmlStorageElement> clazz)
protected ICStorageElement[] getChildren(boolean load)
protected ICStorageElement[] getChildren(Class<XmlStorageElement> clazz, boolean load)
public ICStorageElement getParent()
ICStorageElement
getParent
in interface ICStorageElement
public String getAttribute(String name)
ICStorageElement
getAttribute
in interface ICStorageElement
protected void removed()
public void removeChild(ICStorageElement el)
ICStorageElement
removeChild
in interface ICStorageElement
public void removeAttribute(String name)
ICStorageElement
removeAttribute
in interface ICStorageElement
public void setAttribute(String name, String value)
ICStorageElement
setAttribute
in interface ICStorageElement
public void clear()
ICStorageElement
clear
in interface ICStorageElement
public ICStorageElement createChild(String name, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters)
public String getName()
ICStorageElement
getName
in interface ICStorageElement
public ICStorageElement createChild(String name)
ICStorageElement
createChild
in interface ICStorageElement
public String getValue()
ICStorageElement
getValue
in interface ICStorageElement
public void setValue(String value)
ICStorageElement
setValue
in interface ICStorageElement
public ICStorageElement importChild(ICStorageElement el) throws UnsupportedOperationException
ICStorageElement
importChild
in interface ICStorageElement
UnsupportedOperationException
public ICStorageElement addChild(ICStorageElement el, boolean alowReferencingParent, String[] attributeFilters, String[] childFilters) throws UnsupportedOperationException
UnsupportedOperationException
public String[] getAttributeFilters()
public String[] getChildFilters()
public boolean isParentRefAlowed()
public boolean matches(ICStorageElement el)
public String[] getAttributeNames()
ICStorageElement
getAttributeNames
in interface ICStorageElement
public ICStorageElement createCopy() throws UnsupportedOperationException, org.eclipse.core.runtime.CoreException
ICStorageElement
createCopy
in interface ICStorageElement
UnsupportedOperationException
org.eclipse.core.runtime.CoreException
public boolean equals(ICStorageElement other)
ICStorageElement
equals
in interface ICStorageElement
public ICStorageElement[] getChildrenByName(String name)
ICStorageElement
getChildrenByName
in interface ICStorageElement
name
- String name of children to be returnedpublic boolean hasAttribute(String name)
ICStorageElement
hasAttribute
in interface ICStorageElement
public boolean hasChildren()
ICStorageElement
hasChildren
in interface ICStorageElement
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.