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

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

Parameters:
nameSpace - the name space.

getNameSpace

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

Returns:
the name space.

setLocalName

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

Parameters:
localName - the local name.

getLocalName

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

Returns:
the local name.

create

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.
Throws:
ElementFactoryException


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.