com.arsdigita.formbuilder.ui
Class FormBuilderXMLRenderer

java.lang.Object
  extended bycom.arsdigita.domain.DomainObjectTraversal
      extended bycom.arsdigita.domain.DomainObjectXMLRenderer
          extended bycom.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 $

Nested Class Summary
 
Nested classes inherited from class com.arsdigita.domain.DomainObjectTraversal
DomainObjectTraversal.AdapterKey
 
Field Summary
 
Fields inherited from class com.arsdigita.domain.DomainObjectTraversal
LINK_NAME
 
Constructor Summary
FormBuilderXMLRenderer(Element root)
          Creates a new DomainObject XML renderer that outputs XML into the element passed into the constructor.
 
Method Summary
protected  void endAssociation(DomainObject obj, String path, Property property)
          Method called when the procesing of an association completes
protected  void handleAttribute(DomainObject obj, String path, Property property)
          This overrides the handleAttribute method to provide the special case for the PersistentComponent.ATTRIBUTE_STRING
 
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
 

Constructor Detail

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
Method Detail

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 20 2004:2337 UTC