Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.util
Class DefaultStructuredPropertyAccess

java.lang.Object
  extended by oracle.ide.util.DefaultPropertyAccess
      extended by oracle.ide.util.DefaultStructuredPropertyAccess
All Implemented Interfaces:
PropertyAccess, StructuredPropertyAccess

public class DefaultStructuredPropertyAccess
extends DefaultPropertyAccess
implements StructuredPropertyAccess


Field Summary
 
Fields inherited from class oracle.ide.util.DefaultPropertyAccess
_map
 
Constructor Summary
DefaultStructuredPropertyAccess(java.lang.String name)
           
 
Method Summary
 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)
           
 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
 
Methods inherited from class oracle.ide.util.DefaultPropertyAccess
get, getProperty, put, remove, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.util.PropertyAccess
getProperty, removeProperty, setProperty
 

Constructor Detail

DefaultStructuredPropertyAccess

public DefaultStructuredPropertyAccess(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface StructuredPropertyAccess
Returns:
the name of that node

setName

public void setName(java.lang.String name)
Description copied from interface: StructuredPropertyAccess
Sets the name of the node

Specified by:
setName in interface StructuredPropertyAccess

getChildNodes

public java.util.Iterator getChildNodes()
Description copied from interface: StructuredPropertyAccess
Returns an iterator of all the child nodes

Specified by:
getChildNodes in interface StructuredPropertyAccess
Returns:
an Iterator of StructuredPropertyAccess

getChildNodes

public java.util.Iterator getChildNodes(java.lang.String name)
Description copied from interface: StructuredPropertyAccess
Returns an iterator of all the child nodes with that name

Specified by:
getChildNodes in interface StructuredPropertyAccess
Returns:
an Iterator of StructuredPropertyAccess

getChildNode

public StructuredPropertyAccess getChildNode(java.lang.String name)
Description copied from interface: StructuredPropertyAccess
Returns the child node with the specified name. If there is more than one child with that name the first one is returned

Specified by:
getChildNode in interface StructuredPropertyAccess
Returns:
the child node

insertChild

public void insertChild(int position,
                        StructuredPropertyAccess childNode)
Description copied from interface: StructuredPropertyAccess
Inserts a node at the specified position

Specified by:
insertChild in interface StructuredPropertyAccess

appendChild

public void appendChild(StructuredPropertyAccess childNode)
Description copied from interface: StructuredPropertyAccess
Adds a child node

Specified by:
appendChild in interface StructuredPropertyAccess

addAll

public void addAll(StructuredPropertyAccess other)
Adds all the attributes and children from other to this.

Specified by:
addAll in interface StructuredPropertyAccess
Parameters:
other -

setBooleanProperty

public void setBooleanProperty(java.lang.String key,
                               boolean value)
Description copied from interface: StructuredPropertyAccess
Utility method to set a boolean value

Specified by:
setBooleanProperty in interface StructuredPropertyAccess

getBooleanProperty

public boolean getBooleanProperty(java.lang.String key,
                                  boolean defaultValue)
Description copied from interface: StructuredPropertyAccess
Utility method to retrieve a boolean value

Specified by:
getBooleanProperty in interface StructuredPropertyAccess

setIntegerProperty

public void setIntegerProperty(java.lang.String key,
                               int value)
Description copied from interface: StructuredPropertyAccess
Utility method to set a boolean value

Specified by:
setIntegerProperty in interface StructuredPropertyAccess

getIntegerProperty

public int getIntegerProperty(java.lang.String key,
                              int defaultValue)
Description copied from interface: StructuredPropertyAccess
Utility method to retrieve an integer value

Specified by:
getIntegerProperty in interface StructuredPropertyAccess

removeChild

public void removeChild(StructuredPropertyAccess childNode)
Description copied from interface: StructuredPropertyAccess
Removes the specified node

Specified by:
removeChild in interface StructuredPropertyAccess

removeAllChildren

public void removeAllChildren()

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

getProperties

public java.util.Iterator getProperties()
Description copied from interface: StructuredPropertyAccess
Get the name of all the properties present in this node.

Specified by:
getProperties in interface StructuredPropertyAccess

saveToXML

public static void saveToXML(StructuredPropertyAccess structuredPropertyAccess,
                             java.io.File file)
                      throws java.io.IOException
Throws:
java.io.IOException

loadFromXML

public static DefaultStructuredPropertyAccess loadFromXML(java.io.File file)
                                                   throws org.xml.sax.SAXException,
                                                          oracle.xml.parser.v2.XMLParseException,
                                                          java.io.IOException
Throws:
org.xml.sax.SAXException
oracle.xml.parser.v2.XMLParseException
java.io.IOException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.