com.cafesoft.core.xml.dom
Interface ElementFactory

All Known Implementing Classes:
AbstractElementFactory

public interface ElementFactory

ElementFactory defines an interface for constructing an Object associated with an XML DOM Element.


Method Summary
 Object create(Element element)
          Create the Object associated with an XML Element.
 String getLocalName()
          Return the Element local name associated with this ElementFactory.
 String getNameSpace()
          Return the name space associated with this ElementFactory.
 void setLocalName(String localName)
          Set the Element local name associated with this ElementFactory.
 void setNameSpace(String nameSpace)
          Set the XML name space associated with this ElementFactory.
 

Method Detail

setNameSpace

public void setNameSpace(String nameSpace)
Set the XML name space associated with this ElementFactory.

Parameters:
nameSpace - the name space.

getNameSpace

public String getNameSpace()
Return the name space associated with this ElementFactory.

Returns:
the name space.

setLocalName

public void setLocalName(String localName)
Set the Element local name associated with this ElementFactory.

Parameters:
localName - the local name.

getLocalName

public String getLocalName()
Return the Element local name associated with this ElementFactory.

Returns:
the local name.

create

public Object create(Element element)
              throws ElementFactoryException
Create the Object associated with an XML Element.

Parameters:
element - the XML DOM Element.
Returns:
the Object constructed from the Element or Element sub-tree.
ElementFactoryException


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.