Package ome.util

Class RdfPrinter

  • All Implemented Interfaces:
    Filter

    public class RdfPrinter
    extends ContextFilter
    walks an object graph producing RDF-like output.
    • Constructor Detail

      • RdfPrinter

        public RdfPrinter()
    • 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 interface Filter
        Overrides:
        filter in class ContextFilter
      • 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 interface Filter
        Overrides:
        filter in class ContextFilter