Class RDFXMLParserContext

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

    public class RDFXMLParserContext
    extends java.util.HashMap<java.lang.String,​java.lang.Object>
    The context object for the RDFXMLParser. It returns the prefix to namespace definitions found during parsing. These can be re-used for serialization.
    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_DEFINITIONS
      the key for the prefix definition that are found during parsing
      static java.lang.String XPACKET_ATTRIBUTES
      is populated with the XMP packet attributes, e.g.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getPrefixDefinitions()  
      java.lang.String getXPacketAttributes()  
      • 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

      • PREFIX_DEFINITIONS

        public static java.lang.String PREFIX_DEFINITIONS
        the key for the prefix definition that are found during parsing
      • XPACKET_ATTRIBUTES

        public static final java.lang.String XPACKET_ATTRIBUTES
        is populated with the XMP packet attributes, e.g. 'begin="" id="W5M0MpCehiHzreSzNTczkc9d"'
        See Also:
        Constant Field Values
    • Constructor Detail

      • RDFXMLParserContext

        public RDFXMLParserContext()
    • Method Detail

      • getPrefixDefinitions

        public java.util.Map<java.lang.String,​java.lang.String> getPrefixDefinitions()
        Returns:
        Returns the prefix definitions found in the parsed XMP packet or null.
      • getXPacketAttributes

        public java.lang.String getXPacketAttributes()
        Returns:
        Returns the attributes of the <?xpacket> processing instruction if available or null.