|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.compat.xml.AbstractXmlBuilder
public abstract class AbstractXmlBuilder
An abstract implementation of the XmlBuilder interface that gets and sets a delegate, leaves the build method abstract, and doesn't support the generate method.
Constructor Summary | |
---|---|
AbstractXmlBuilder()
|
Method Summary | |
---|---|
abstract Object |
build(XmlElement elt,
String type)
Given an XmlElement, create and return an internal representtion of it. |
XmlElement |
generate(Object in)
Unable to generate XML by default. |
XmlBuilder |
getDelegate()
Return the delegate set by getDelegate(). |
void |
setDelegate(XmlBuilder delegate)
Delegate builders can be used to build/generate for objects that are unknown by the current builder, as might be the case in a hierarchy of heterogeneous objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlBuilder()
Method Detail |
---|
public abstract Object build(XmlElement elt, String type) throws Exception
public Graph build (XmlELement elt, String type);
build
in interface XmlBuilder
Exception
public void setDelegate(XmlBuilder delegate)
setDelegate
in interface XmlBuilder
CompositeBuilder
public XmlBuilder getDelegate()
public XmlElement generate(Object in) throws Exception
generate
in interface XmlBuilder
UnsupportedOperationException
- Unable to generate XML by default
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |