Package ome.util
Class RdfPrinter
- java.lang.Object
-
- ome.util.ContextFilter
-
- ome.util.RdfPrinter
-
- All Implemented Interfaces:
Filter
public class RdfPrinter extends ContextFilter
walks an object graph producing RDF-like output.
-
-
Field Summary
-
Fields inherited from class ome.util.ContextFilter
_cache, _context
-
-
Constructor Summary
Constructors Constructor Description RdfPrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidentry(java.lang.String field, java.lang.Object o)java.lang.Objectfilter(java.lang.String fieldId, java.lang.Object o)used when type is unknown.java.util.Collectionfilter(java.lang.String fieldId, java.util.Collection c)iterates over the contents of the collection and filters each.Filterablefilter(java.lang.String fieldId, Filterable f)java.lang.StringgetRdf()-
Methods inherited from class ome.util.ContextFilter
addSeen, afterFilter, beforeFilter, currentContext, doFilter, doFilter, doFilter, enter, exit, filter, filter, hasntSeen, pop, previousContext, push
-
-
-
-
Method Detail
-
getRdf
public java.lang.String getRdf()
-
entry
protected void entry(java.lang.String field, java.lang.Object o)
-
filter
public java.lang.Object filter(java.lang.String fieldId, java.lang.Object o)Description copied from class:ContextFilterused when type is unknown. this is possibly omittable with generics- Specified by:
filterin interfaceFilter- Overrides:
filterin classContextFilter
-
filter
public Filterable filter(java.lang.String fieldId, Filterable f)
- Specified by:
filterin interfaceFilter- Overrides:
filterin classContextFilter
-
filter
public java.util.Collection filter(java.lang.String fieldId, java.util.Collection c)Description copied from class:ContextFilteriterates over the contents of the collection and filters each. Adds itself to the context. This is somewhat dangerous.- Specified by:
filterin interfaceFilter- Overrides:
filterin classContextFilter
-
-