Extension SDK 10.1.2

oracle.ide.util
Interface StructuredPropertyAccess

All Superinterfaces:
PropertyAccess
All Known Implementing Classes:
DefaultStructuredPropertyAccess

public interface StructuredPropertyAccess
extends PropertyAccess


Method Summary
 void addAll(StructuredPropertyAccess other)
          Add all the properties and child nodes of other into this node.
 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.
 void insertChild(int position, StructuredPropertyAccess childNode)
          Inserts a node at the specified position
 void removeChild(StructuredPropertyAccess childNode)
          Removes the specified node
 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 interface oracle.ide.util.PropertyAccess
getProperty, removeProperty, setProperty
 

Method Detail

getName

public java.lang.String getName()
Returns:
the name of that node

setName

public void setName(java.lang.String name)
Sets the name of the node

Parameters:
name -

getChildNodes

public java.util.Iterator getChildNodes()
Returns an iterator of all the child nodes

Returns:
an Iterator of StructuredPropertyAccess

getChildNodes

public java.util.Iterator getChildNodes(java.lang.String name)
Returns an iterator of all the child nodes with that name

Parameters:
name -
Returns:
an Iterator of StructuredPropertyAccess

getChildNode

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

Parameters:
name -
Returns:
the child node

insertChild

public void insertChild(int position,
                        StructuredPropertyAccess childNode)
Inserts a node at the specified position

Parameters:
position -
childNode -

appendChild

public void appendChild(StructuredPropertyAccess childNode)
Adds a child node

Parameters:
childNode -

removeChild

public void removeChild(StructuredPropertyAccess childNode)
Removes the specified node

Parameters:
childNode -

getProperties

public java.util.Iterator getProperties()
Get the name of all the properties present in this node.

Returns:

addAll

public void addAll(StructuredPropertyAccess other)
Add all the properties and child nodes of other into this node.

Parameters:
other -

setBooleanProperty

public void setBooleanProperty(java.lang.String key,
                               boolean value)
Utility method to set a boolean value


getBooleanProperty

public boolean getBooleanProperty(java.lang.String key,
                                  boolean defaultValue)
Utility method to retrieve a boolean value

Parameters:
defaultValue -
Returns:

setIntegerProperty

public void setIntegerProperty(java.lang.String key,
                               int value)
Utility method to set a boolean value


getIntegerProperty

public int getIntegerProperty(java.lang.String key,
                              int defaultValue)
Utility method to retrieve an integer value

Parameters:
defaultValue -
Returns:

Extension SDK

 

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