com.cysols.iodef
Class ElementCreator
java.lang.Object
com.cysols.iodef.ElementCreator
- Direct Known Subclasses:
- IODEFElementCreator, RIDElementCreator
public class ElementCreator
- extends Object
Create the element class indicated xml element.
- Author:
- cysol
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementCreator
public ElementCreator()
create
protected IElement create(String name)
createDomElement
protected Element createDomElement(Document doc,
IElement ie)
createAttribute
protected IAttribute createAttribute(String name)
- Creates an attribute of the type specified.
- Parameters:
name - The name of the attribute type to instantiate.
- Returns:
- The attribute class indicated by specified name.
getDomElement
protected Element getDomElement(Document doc,
IElement ie)
createDomAttr
protected Attr createDomAttr(Document doc,
IAttribute ia)
replace
protected IElement replace(Node node)
- Replaces a dom node to an elemnet class.
- Parameters:
node - dom element instance.
- Returns:
- replaced element indicated to dom node.