com.arsdigita.domain
Class DomainObjectTextRenderer

java.lang.Object
  extended bycom.arsdigita.domain.DomainObjectTraversal
      extended bycom.arsdigita.domain.DomainObjectTextRenderer

public class DomainObjectTextRenderer
extends DomainObjectTraversal

An implementation of DomainObjectTraversal that generates a single string containing all the data from the object's traversed properties.

Version:
$Id: //core-platform/dev/src/com/arsdigita/domain/DomainObjectTextRenderer.java#5 $

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
DomainObjectTextRenderer()
           
 
Method Summary
protected  void beginAssociation(DomainObject obj, String path, Property property)
          Method called when the processing of an association starts
protected  void beginObject(DomainObject obj, String path)
          Method called when the processing of an object starts
protected  void beginRole(DomainObject obj, String path, Property property)
          Method called when the processing of a role starts
protected  void endAssociation(DomainObject obj, String path, Property property)
          Method called when the procesing of an association completes
protected  void endObject(DomainObject obj, String path)
          Method called when the procesing of an object completes
protected  void endRole(DomainObject obj, String path, Property property)
          Method called when the procesing of a role completes
 String getText()
           
protected  void handleAttribute(DomainObject obj, String path, Property property)
          Method called when an attribute is encountered
protected  void revisitObject(DomainObject obj, String path)
          Method called when a previously visited object is encountered for a second time.
 
Methods inherited from class com.arsdigita.domain.DomainObjectTraversal
appendToPath, beginLink, endLink, findAdapter, lookupAdapter, nameFromPath, parentFromPath, registerAdapter, registerAdapter, unregisterAdapter, unregisterAdapter, walk, walk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainObjectTextRenderer

public DomainObjectTextRenderer()
Method Detail

getText

public String getText()

beginObject

protected void beginObject(DomainObject obj,
                           String path)
Description copied from class: DomainObjectTraversal
Method called when the processing of an object starts

Specified by:
beginObject in class DomainObjectTraversal

endObject

protected void endObject(DomainObject obj,
                         String path)
Description copied from class: DomainObjectTraversal
Method called when the procesing of an object completes

Specified by:
endObject in class DomainObjectTraversal

revisitObject

protected void revisitObject(DomainObject obj,
                             String path)
Description copied from class: DomainObjectTraversal
Method called when a previously visited object is encountered for a second time.

Specified by:
revisitObject in class DomainObjectTraversal

handleAttribute

protected void handleAttribute(DomainObject obj,
                               String path,
                               Property property)
Description copied from class: DomainObjectTraversal
Method called when an attribute is encountered

Specified by:
handleAttribute in class DomainObjectTraversal

beginRole

protected void beginRole(DomainObject obj,
                         String path,
                         Property property)
Description copied from class: DomainObjectTraversal
Method called when the processing of a role starts

Specified by:
beginRole in class DomainObjectTraversal

endRole

protected void endRole(DomainObject obj,
                       String path,
                       Property property)
Description copied from class: DomainObjectTraversal
Method called when the procesing of a role completes

Specified by:
endRole in class DomainObjectTraversal

beginAssociation

protected void beginAssociation(DomainObject obj,
                                String path,
                                Property property)
Description copied from class: DomainObjectTraversal
Method called when the processing of an association starts

Specified by:
beginAssociation in class DomainObjectTraversal

endAssociation

protected void endAssociation(DomainObject obj,
                              String path,
                              Property property)
Description copied from class: DomainObjectTraversal
Method called when the procesing of an association completes

Specified by:
endAssociation in class DomainObjectTraversal


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC