Class RDFXMLSerializerContext

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public class RDFXMLSerializerContext
    extends java.util.HashMap<java.lang.String,​java.lang.Object>
    The context object for the RDFXMLSerializer. It provides the serialization options to the RDF/XML serializer implementation.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX_CONTRACT
      An optional prefix-to-namespace contract for custom serialization
      static java.lang.String SERIALIZE_OPTIONS
      The context key for the serialization options
    • Method Summary

      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Field Detail

      • SERIALIZE_OPTIONS

        public static final java.lang.String SERIALIZE_OPTIONS
        The context key for the serialization options
        See Also:
        Constant Field Values
      • PREFIX_CONTRACT

        public static final java.lang.String PREFIX_CONTRACT
        An optional prefix-to-namespace contract for custom serialization
        See Also:
        Constant Field Values
    • Constructor Detail

      • RDFXMLSerializerContext

        public RDFXMLSerializerContext()
        Default constructor
      • RDFXMLSerializerContext

        public RDFXMLSerializerContext​(SerializeOptions options)
        Constructor for a context with serialization options.
        Parameters:
        options - serialization options
      • RDFXMLSerializerContext

        public RDFXMLSerializerContext​(SerializeOptions options,
                                       java.util.Map<java.lang.String,​java.lang.String> prefixContract)
        Constructor for a context with serialization options and the prefix contract.
        Parameters:
        options - serialization options
        prefixContract - prefix to namespace-map that contains proposed prefixes for the output