public abstract class AbstractXmlBuilder extends Object implements XmlBuilder
Constructor and Description |
---|
AbstractXmlBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 defaultException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.