Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.util.xml
Class AbstractXmlBuilder

java.lang.Object
 extended bydiva.util.xml.AbstractXmlBuilder
All Implemented Interfaces:
XmlBuilder
Direct Known Subclasses:
CompositeBuilder

public abstract class AbstractXmlBuilder
extends java.lang.Object
implements XmlBuilder

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.

Version:
$Id: AbstractXmlBuilder.java,v 1.15 2005年07月08日 19:55:20 cxh Exp $
Author:
Michael Shilman
Accepted Rating:
Red

Constructor Summary
AbstractXmlBuilder()
Method Summary
abstract java.lang.Object build(XmlElement elt, java.lang.String type)
Given an XmlElement, create and return an internal representation of it.
XmlElement generate(java.lang.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

AbstractXmlBuilder

public AbstractXmlBuilder()
Method Detail

build

public abstract java.lang.Object build(XmlElement elt,
 java.lang.String type)
 throws java.lang.Exception
Given an XmlElement, create and return an internal representation of it. Implementors should also provide a more type-specific version of this method:
 public Graph build (XmlELement elt, String type);
 

Specified by:
build in interface XmlBuilder
Throws:
java.lang.Exception

setDelegate

public 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.

Specified by:
setDelegate in interface XmlBuilder
See Also:
CompositeBuilder

getDelegate

public XmlBuilder getDelegate()
Return the delegate set by getDelegate().


generate

public XmlElement generate(java.lang.Object in)
 throws java.lang.Exception
Unable to generate XML by default.

Specified by:
generate in interface XmlBuilder
Throws:
java.lang.UnsupportedOperationException - Unable to generate XML by default
java.lang.Exception

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /