|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to control traversal of domain
objects. Whenever a property is encountered, the processProperty(com.arsdigita.domain.DomainObject, java.lang.String, com.arsdigita.persistence.metadata.Property, java.lang.String)
method will be called to determine whether or not
to continue processing the object. The most important use for this
is to prevent the needless (and potentially infinite) traversal of
associations between objects, but it can also be used to filter out
certain attributes.
Instances of this class need to be registered using the DomainObjectTraversal.registerAdapter method.
DomainObjectTraversal
,
SimpleDomainObjectTraversalAdapter
Method Summary | |
boolean |
processProperty(DomainObject obj,
String path,
Property prop,
String context)
Invoked to determine whether to process a property. |
Method Detail |
public boolean processProperty(DomainObject obj, String path, Property prop, String context)
obj
- the domain object currently being processedpath
- the path to the current domain object from
the root object being traversedprop
- the property about to be processedcontext
- the context in which the object is traversed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |