Class SimpleNamespaceService

  • All Implemented Interfaces:
    NamespaceService

    @ApplicationScoped
    public class SimpleNamespaceService
    extends Object
    implements NamespaceService
    A simple, in-memory namespace service.

    This service will load some standard namespaces/prefixes and read system properties into the namespace maping if they are defined like so: "trellis.ns-myprefix=http://example.com/namespace"

    • Constructor Detail

      • SimpleNamespaceService

        public SimpleNamespaceService()
        Create a simple, in-memory namespace service.
    • 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