org.jpox.plugin
Class ConfigurationElement

java.lang.Object
  extended byorg.jpox.plugin.ConfigurationElement

public class ConfigurationElement
extends java.lang.Object

Represents XML elements declared nested in the extension element


Constructor Summary
ConfigurationElement(java.lang.String name, ConfigurationElement parent)
          Constructor
 
Method Summary
 void addConfigurationElement(ConfigurationElement confElm)
          Add a new children ConfigurationElement to this element
 java.lang.String getAttribute(java.lang.String name)
          Acessor for the attribute value by a given name
 java.lang.String[] getAttributeNames()
          Acessor for all attribute names declared in this element
 ConfigurationElement[] getChildren()
          Acessor for all children of this ConfigurationElement
 java.lang.String getName()
          Acessor for the name of this element
 ConfigurationElement getParent()
          Acessor for the parent of this ConfigurationElement
 void putAttribute(java.lang.String name, java.lang.String value)
          Put a new attribute to this element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationElement

public ConfigurationElement(java.lang.String name,
                            ConfigurationElement parent)
Constructor

Parameters:
name - the element's name
parent - the parent. null if there is no parent
Method Detail

getName

public java.lang.String getName()
Acessor for the name of this element

Returns:
the name of this element

getParent

public ConfigurationElement getParent()
Acessor for the parent of this ConfigurationElement

Returns:
can return null if there is no parent, or the parent is the Extension

getChildren

public ConfigurationElement[] getChildren()
Acessor for all children of this ConfigurationElement

Returns:
the ConfigurationElement declared nested in this element

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Acessor for the attribute value by a given name

Parameters:
name - the attribute name
Returns:
null if the attribute cannot be found

putAttribute

public void putAttribute(java.lang.String name,
                         java.lang.String value)
Put a new attribute to this element

Parameters:
name - the attribute's name
value - the attribute's value

addConfigurationElement

public void addConfigurationElement(ConfigurationElement confElm)
Add a new children ConfigurationElement to this element

Parameters:
confElm - the ConfigurationElement

getAttributeNames

public java.lang.String[] getAttributeNames()
Acessor for all attribute names declared in this element

Returns:
the attribute names


Copyright © -2007 . All Rights Reserved.