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 void
entry(java.lang.String field, java.lang.Object o)
java.lang.Object
filter(java.lang.String fieldId, java.lang.Object o)
used when type is unknown.java.util.Collection
filter(java.lang.String fieldId, java.util.Collection c)
iterates over the contents of the collection and filters each.Filterable
filter(java.lang.String fieldId, Filterable f)
java.lang.String
getRdf()
-
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:ContextFilter
used when type is unknown. this is possibly omittable with generics- Specified by:
filter
in interfaceFilter
- Overrides:
filter
in classContextFilter
-
filter
public Filterable filter(java.lang.String fieldId, Filterable f)
- Specified by:
filter
in interfaceFilter
- Overrides:
filter
in classContextFilter
-
filter
public java.util.Collection filter(java.lang.String fieldId, java.util.Collection c)
Description copied from class:ContextFilter
iterates over the contents of the collection and filters each. Adds itself to the context. This is somewhat dangerous.- Specified by:
filter
in interfaceFilter
- Overrides:
filter
in classContextFilter
-
-