com.arsdigita.formbuilder.ui
Class FormBuilderXMLRenderer
java.lang.Object
com.arsdigita.domain.DomainObjectTraversal
com.arsdigita.domain.DomainObjectXMLRenderer
com.arsdigita.formbuilder.ui.FormBuilderXMLRenderer
- public class FormBuilderXMLRenderer
- extends DomainObjectXMLRenderer
An implementation of DomainObjectTraversal that generates an XML
tree representing the DomainObject. The output format of the XML
can be controlled using the various setWrapXXX methods detailed
below.
This handles the special case attributes that are presented by
the form builder but otherwise is similar to the DomainObjectXMLRenderer
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/formbuilder/ui/FormBuilderXMLRenderer.java#4 $
Constructor Summary |
FormBuilderXMLRenderer(Element root)
Creates a new DomainObject XML renderer
that outputs XML into the element passed into
the constructor. |
Methods inherited from class com.arsdigita.domain.DomainObjectXMLRenderer |
beginAssociation, beginObject, beginRole, endObject, endRole, findFormatter, format, getCurrentElement, getFormatter, isWrappingAttributes, isWrappingObjects, isWrappingRoot, newElement, newElement, registerFormatter, registerFormatter, revisitObject, setNamespace, setRevisitFullObject, setWrapAttributes, setWrapObjects, setWrapRoot, unregisterFormatter, unregisterFormatter, walk |
Methods inherited from class com.arsdigita.domain.DomainObjectTraversal |
appendToPath, beginLink, endLink, findAdapter, lookupAdapter, nameFromPath, parentFromPath, registerAdapter, registerAdapter, unregisterAdapter, unregisterAdapter, walk |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormBuilderXMLRenderer
public FormBuilderXMLRenderer(Element root)
- Creates a new DomainObject XML renderer
that outputs XML into the element passed into
the constructor.
- Parameters:
root
- the XML element in which to output children
endAssociation
protected void endAssociation(DomainObject obj,
String path,
Property property)
- Description copied from class:
DomainObjectTraversal
- Method called when the procesing of an association
completes
- Overrides:
endAssociation
in class DomainObjectXMLRenderer
handleAttribute
protected void handleAttribute(DomainObject obj,
String path,
Property property)
- This overrides the handleAttribute method to provide the special case
for the PersistentComponent.ATTRIBUTE_STRING
- Overrides:
handleAttribute
in class DomainObjectXMLRenderer
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC