Class Name


  • public class Name
    extends Object
    An identifier composed of a namespace and a specific name with 2 string representations:
    - an uniform resource name (urn) represented as a relative path: namespace/name
    - an identifier (id): encode the urn as namespace-name
    When there is no namespace, URN and id are identical.
    Since:
    11.1
    • Field Detail

      • VALID_NAMESPACE_PATTERN

        protected static final Pattern VALID_NAMESPACE_PATTERN
      • VALID_LOG_NAME_PATTERN

        protected static final Pattern VALID_LOG_NAME_PATTERN
      • VALID_LOG_NAME_WITHOUT_NS_PATTERN

        protected static final Pattern VALID_LOG_NAME_WITHOUT_NS_PATTERN
      • namespace

        protected final String namespace
      • name

        protected final String name
      • id

        protected final String id
      • urn

        protected final String urn
    • Method Detail

      • ofUrn

        public static Name ofUrn​(String urn)
      • getNamespace

        public String getNamespace()
      • getName

        public String getName()
      • getId

        public String getId()
      • getUrn

        public String getUrn()
      • checkLogName

        protected static void checkLogName​(String name)
      • checkLogNameWithoutNamespace

        protected static void checkLogNameWithoutNamespace​(String name)
      • checkNameSpace

        protected static void checkNameSpace​(String name)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object