Class PrefixHandler


  • public class PrefixHandler
    extends java.lang.Object
    The prefix handler for the updatebuilder class
    • Constructor Detail

      • PrefixHandler

        public PrefixHandler​(PrefixMapping pMap)
        Constructor. May modify the contents of the provided prefix mapping
        Parameters:
        pMap - The prefix map to handle.
      • PrefixHandler

        public PrefixHandler()
        Constructor. Creates and empty prefix mapping
    • Method Detail

      • addPrefix

        public void addPrefix​(java.lang.String pfx,
                              java.lang.String uri)
        Add a prefix to the prefix mapping.
        Parameters:
        pfx - The prefix to add.
        uri - The uri to resolve the prefix to.
      • clearPrefixes

        public void clearPrefixes()
        Clear the prefix mapping.
      • addPrefixes

        public void addPrefixes​(java.util.Map<java.lang.String,​java.lang.String> prefixes)
        Add the map of prefixes to the query prefixes.
        Parameters:
        prefixes - The map of prefixs to URIs.
      • getPrefixes

        public PrefixMapping getPrefixes()
        Get the prefix mapping
        Returns:
        the prefix mapping object.
      • getExprFactory

        public ExprFactory getExprFactory()
        Get the expression factory based on the prefix mapping.
        Returns:
        an Expression Factory.
      • addPrefixes

        public void addPrefixes​(PrefixMapping prefixes)
        Add prefixes from a prefix mapping.
        Parameters:
        prefixes - The prefix mapping to add from.