|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.xml.dom.AbstractElementFactory
AbstractElementFactory implements an abstract factory class for
constructing an Object associated with an XML DOM Element. It provides
reusable implementation for basic set/get methods and useful constructors.
Concrete implementations must override the create() method.
| Field Summary | |
protected String |
localName
The local name. |
protected String |
nameSpace
The name space |
| Constructor Summary | |
AbstractElementFactory()
Create a new ElementFactory. |
|
AbstractElementFactory(String nameSpace,
String localName)
Create a new ElementFactory. |
|
| Method Summary | |
abstract 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String nameSpace
protected String localName
| Constructor Detail |
public AbstractElementFactory()
public AbstractElementFactory(String nameSpace,
String localName)
nameSpace - the XML name space associated with the Element.localName - the XML local name associated with the Element.| Method Detail |
public void setNameSpace(String nameSpace)
setNameSpace in interface ElementFactorynameSpace - the name space.public String getNameSpace()
getNameSpace in interface ElementFactorypublic void setLocalName(String localName)
setLocalName in interface ElementFactorylocalName - the local name.public String getLocalName()
getLocalName in interface ElementFactory
public abstract Object create(Element element)
throws ElementFactoryException
create in interface ElementFactoryelement - the XML DOM Element.
ElementFactoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||