Package com.bc.ceres.binding.dom
Class DefaultDomElement
java.lang.Object
com.bc.ceres.binding.dom.DefaultDomElement
- All Implemented Interfaces:
DomElement,ConfigurationElementBase<DomElement>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(DomElement child) createChild(String name) getAttribute(String name) Gets the value of the attribute with the specified name.String[]Gets the names of all attributes.getChild(int index) Gets the child element with the specified element name.intGets all children.getChildren(String elementName) Gets all children with the specified element name.getName()Gets the name of this element.Gets the element which contains this element.getValue()Gets the value of this element.voidsetAttribute(String name, String value) voidsetParent(DomElement parent) voidtoXml()
-
Constructor Details
-
DefaultDomElement
-
DefaultDomElement
-
-
Method Details
-
getName
Description copied from interface:ConfigurationElementBaseGets the name of this element.- Specified by:
getNamein interfaceConfigurationElementBase<DomElement>- Returns:
- The name of this element.
-
getValue
Description copied from interface:ConfigurationElementBaseGets the value of this element.- Specified by:
getValuein interfaceConfigurationElementBase<DomElement>- Returns:
- The value of this element, or
null.
-
setValue
- Specified by:
setValuein interfaceDomElement
-
getParent
Description copied from interface:ConfigurationElementBaseGets the element which contains this element. If this element is an immediate child of an extension or an extension point, the returned value isnull.- Specified by:
getParentin interfaceConfigurationElementBase<DomElement>- Returns:
- The parent of this configuration element or
nullif this is a root element.
-
setParent
- Specified by:
setParentin interfaceDomElement
-
getAttribute
Description copied from interface:ConfigurationElementBaseGets the value of the attribute with the specified name.- Specified by:
getAttributein interfaceConfigurationElementBase<DomElement>- Parameters:
name- The attribute name.- Returns:
- The value of the attribute, or
null.
-
setAttribute
- Specified by:
setAttributein interfaceDomElement
-
getAttributeNames
Description copied from interface:ConfigurationElementBaseGets the names of all attributes.- Specified by:
getAttributeNamesin interfaceConfigurationElementBase<DomElement>- Returns:
- The array of names, which may be empty.
-
getChild
Description copied from interface:ConfigurationElementBaseGets the child element with the specified element name.- Specified by:
getChildin interfaceConfigurationElementBase<DomElement>- Parameters:
elementName- The element name.- Returns:
- The child element or
nullif no such could be found.
-
getChildren
Description copied from interface:ConfigurationElementBaseGets all children.- Specified by:
getChildrenin interfaceConfigurationElementBase<DomElement>- Returns:
- The array of children, which may be empty.
-
getChildren
Description copied from interface:ConfigurationElementBaseGets all children with the specified element name.- Specified by:
getChildrenin interfaceConfigurationElementBase<DomElement>- Parameters:
elementName- The element name.- Returns:
- The array of children, which may be empty.
-
getChild
- Specified by:
getChildin interfaceDomElement
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceDomElement
-
createChild
- Specified by:
createChildin interfaceDomElement
-
addChild
- Specified by:
addChildin interfaceDomElement
-
toXml
- Specified by:
toXmlin interfaceDomElement
-