Class IdString

  • Direct Known Subclasses:

    public abstract class IdString
    extends java.lang.Object
    To be used with DocumentId constructor.
    Einar M R Rosenvinge
    • Constructor Detail

      • IdString

        protected IdString​(IdString.Scheme scheme,
                           java.lang.String namespace,
                           java.lang.String namespaceSpecific)
    • Method Detail

      • hasDocType

        public boolean hasDocType()
      • getDocType

        public java.lang.String getDocType()
      • hasGroup

        public boolean hasGroup()
      • hasNumber

        public boolean hasNumber()
      • getNumber

        public long getNumber()
      • getGroup

        public java.lang.String getGroup()
      • createIdString

        public static IdString createIdString​(java.lang.String id)
        Creates a IdString based on the given document id string. The document id string can only contain text characters.
      • createFromSerialized

        public static IdString createFromSerialized​(java.lang.String id)
        Creates a IdString based on the given serialized document id string. The document id string can not contain 0x0 byte characters.
      • getNamespace

        public java.lang.String getNamespace()
      • getNamespaceSpecific

        public java.lang.String getNamespaceSpecific()
      • getLocation

        public abstract long getLocation()
      • getSchemeParameters

        public java.lang.String getSchemeParameters()
      • getSchemeSpecific

        public abstract java.lang.String getSchemeSpecific()
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • toUtf8

        public toUtf8()