Class DocumentId

  • All Implemented Interfaces:, java.lang.Cloneable

    public class DocumentId
    The id of a document
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class

    • Constructor Summary

      Constructor Description
      DocumentId​(IdString id)  
      DocumentId​( buf)
      Constructor used for deserialization.
      DocumentId​(java.lang.String id)
      Creates a document id based on the given document id URI string.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DocumentId clone()  
      int compareTo​(java.lang.Object o)  
      static DocumentId createFromSerialized​(java.lang.String id)
      Creates a document id based on a serialized document id URI string.
      boolean equals​(java.lang.Object o)  
      java.lang.String getDocType()  
      byte[] getGlobalId()  
      IdString getScheme()  
      boolean hasDocType()  
      int hashCode()  
      void onDeserialize​( data)  
      void onSerialize​( target)  
      void setId​(IdString id)  
      java.lang.String toString()  
      • Methods inherited from class

        create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getUtf8, onGetClassId, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, visitMembers
      • Methods inherited from class

        select, select, selectMembers
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DocumentId

        public DocumentId​( buf)
        Constructor used for deserialization.
      • DocumentId

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

        public DocumentId​(IdString id)
    • Method Detail

      • createFromSerialized

        public static DocumentId createFromSerialized​(java.lang.String id)
        Creates a document id based on a serialized document id URI string. The document id string is not allowed to contain 0x0 byte characters. Otherwise all characters are allowed to ensure that document ids already stored can be de-serialized.
      • clone

        public DocumentId clone()
        clone in class
      • setId

        public void setId​(IdString id)
      • getScheme

        public IdString getScheme()
      • getGlobalId

        public byte[] getGlobalId()
      • compareTo

        public int compareTo​(java.lang.Object o)
      • equals

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

        public int hashCode()
        hashCode in class
      • toString

        public java.lang.String toString()
        toString in class
      • hasDocType

        public boolean hasDocType()
      • getDocType

        public java.lang.String getDocType()