Class FileNamespaceService

    • Field Detail

      • CONFIG_FILE_NAMESPACE_PATH

        public static final String CONFIG_FILE_NAMESPACE_PATH
        The configuration key controlling the path to a JSON-formatted namespace file.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileNamespaceService

        public FileNamespaceService()
        Create a JSON-based Namespace service.
      • FileNamespaceService

        public FileNamespaceService​(String path)
        Create a JSON-based Namespace service.
        Parameters:
        path - the path to the JSON file
    • Method Detail

      • setPrefix

        public boolean setPrefix​(String prefix,
                                 String namespace)
        Description copied from interface: NamespaceService
        Set the namespace for a given prefix.
        Specified by:
        setPrefix in interface NamespaceService
        Parameters:
        prefix - the prefix
        namespace - the namespace
        Returns:
        whether the new prefix was set