com.cysols.iodef
Class ElementCreator

java.lang.Object
  extended by com.cysols.iodef.ElementCreator
Direct Known Subclasses:
IODEFElementCreator, RIDElementCreator

public class ElementCreator
extends Object

Create the element class indicated xml element.

Author:
cysol

Constructor Summary
ElementCreator()
           
 
Method Summary
protected  IElement create(String name)
           
protected  IAttribute createAttribute(String name)
          Creates an attribute of the type specified.
protected  Attr createDomAttr(Document doc, IAttribute ia)
           
protected  Element createDomElement(Document doc, IElement ie)
           
protected  Element getDomElement(Document doc, IElement ie)
           
protected  IElement replace(Node node)
          Replaces a dom node to an elemnet class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementCreator

public ElementCreator()
Method Detail

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.