public class DefaultStructuredPropertyAccess extends DefaultPropertyAccess implements StructuredPropertyAccess
_map| Constructor and Description |
|---|
DefaultStructuredPropertyAccess(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(StructuredPropertyAccess other)
Adds all the attributes and children from
other to this. |
void |
appendChild(StructuredPropertyAccess childNode)
Adds a child node
|
boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue)
Utility method to retrieve a boolean value
|
StructuredPropertyAccess |
getChildNode(java.lang.String name)
Returns the child node with the specified name.
|
java.util.Iterator |
getChildNodes()
Returns an iterator of all the child nodes
|
java.util.Iterator |
getChildNodes(java.lang.String name)
Returns an iterator of all the child nodes with that
name |
int |
getIntegerProperty(java.lang.String key,
int defaultValue)
Utility method to retrieve an integer value
|
java.lang.String |
getName() |
java.util.Iterator |
getProperties()
Get the name of all the properties present in this node.
|
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
void |
insertChild(int position,
StructuredPropertyAccess childNode)
Inserts a node at the specified position
|
static DefaultStructuredPropertyAccess |
loadFromXML(java.io.File file) |
static DefaultStructuredPropertyAccess |
loadFromXML(java.io.InputStream inputStream) |
void |
removeAllChildren() |
void |
removeChild(StructuredPropertyAccess childNode)
Removes the specified node
|
static void |
saveToXML(StructuredPropertyAccess structuredPropertyAccess,
java.io.File file) |
void |
setBooleanProperty(java.lang.String key,
boolean value)
Utility method to set a boolean value
|
void |
setIntegerProperty(java.lang.String key,
int value)
Utility method to set a boolean value
|
void |
setName(java.lang.String name)
Sets the name of the node
|
get, getProperty, put, remove, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, removeProperty, setPropertypublic DefaultStructuredPropertyAccess(java.lang.String name)
public java.lang.String getName()
getName in interface StructuredPropertyAccesspublic void setName(java.lang.String name)
StructuredPropertyAccesssetName in interface StructuredPropertyAccesspublic java.util.Iterator getChildNodes()
StructuredPropertyAccessgetChildNodes in interface StructuredPropertyAccesspublic java.util.Iterator getChildNodes(java.lang.String name)
StructuredPropertyAccessnamegetChildNodes in interface StructuredPropertyAccesspublic StructuredPropertyAccess getChildNode(java.lang.String name)
StructuredPropertyAccessgetChildNode in interface StructuredPropertyAccesspublic void insertChild(int position,
StructuredPropertyAccess childNode)
StructuredPropertyAccessinsertChild in interface StructuredPropertyAccesspublic void appendChild(StructuredPropertyAccess childNode)
StructuredPropertyAccessappendChild in interface StructuredPropertyAccesspublic void addAll(StructuredPropertyAccess other)
other to this.addAll in interface StructuredPropertyAccessother - public void setBooleanProperty(java.lang.String key,
boolean value)
StructuredPropertyAccesssetBooleanProperty in interface StructuredPropertyAccesspublic boolean getBooleanProperty(java.lang.String key,
boolean defaultValue)
StructuredPropertyAccessgetBooleanProperty in interface StructuredPropertyAccesspublic void setIntegerProperty(java.lang.String key,
int value)
StructuredPropertyAccesssetIntegerProperty in interface StructuredPropertyAccesspublic int getIntegerProperty(java.lang.String key,
int defaultValue)
StructuredPropertyAccessgetIntegerProperty in interface StructuredPropertyAccesspublic void removeChild(StructuredPropertyAccess childNode)
StructuredPropertyAccessremoveChild in interface StructuredPropertyAccesspublic void removeAllChildren()
public boolean hasAttributes()
public boolean hasChildNodes()
public java.util.Iterator getProperties()
StructuredPropertyAccessgetProperties in interface StructuredPropertyAccesspublic static void saveToXML(StructuredPropertyAccess structuredPropertyAccess, java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static DefaultStructuredPropertyAccess loadFromXML(java.io.File file) throws org.xml.sax.SAXException, oracle.xml.parser.v2.XMLParseException, java.io.IOException
org.xml.sax.SAXExceptionoracle.xml.parser.v2.XMLParseExceptionjava.io.IOExceptionpublic static DefaultStructuredPropertyAccess loadFromXML(java.io.InputStream inputStream) throws org.xml.sax.SAXException, oracle.xml.parser.v2.XMLParseException, java.io.IOException
org.xml.sax.SAXExceptionoracle.xml.parser.v2.XMLParseExceptionjava.io.IOException