public class ConfigurationElement extends Object
| Constructor and Description |
|---|
ConfigurationElement(Extension extension,
String name,
ConfigurationElement parent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationElement(ConfigurationElement confElm)
Add a new children ConfigurationElement to this element
|
String |
getAttribute(String name)
Acessor for the attribute value by a given name
|
String[] |
getAttributeNames()
Acessor for all attribute names declared in this element
|
ConfigurationElement[] |
getChildren()
Acessor for all children of this ConfigurationElement
|
Extension |
getExtension()
Accesstor to the
Extension |
String |
getName()
Acessor for the name of this element
|
ConfigurationElement |
getParent()
Acessor for the parent of this ConfigurationElement
|
String |
getText()
Accessor to the text
|
void |
putAttribute(String name,
String value)
Put a new attribute to this element
|
void |
setText(String text)
Setter to the text
|
String |
toString() |
public ConfigurationElement(Extension extension, String name, ConfigurationElement parent)
extension - The extensionname - the element's nameparent - the parent. null if there is no parentpublic String getName()
public ConfigurationElement getParent()
public ConfigurationElement[] getChildren()
public String getAttribute(String name)
name - the attribute namepublic void putAttribute(String name, String value)
name - the attribute's namevalue - the attribute's valuepublic void addConfigurationElement(ConfigurationElement confElm)
confElm - the ConfigurationElementpublic String[] getAttributeNames()
public void setText(String text)
text - the textpublic String getText()
Copyright © 2017. All rights reserved.