|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.duplicity.datastructure.TextUnitID
public abstract class TextUnitID
Class represents a unit of text.
Its childs correspond to units on different duplicity checking levels
(see Constants.CHECK_DUPLICITY_LEVEL
).
Field Summary | |
---|---|
protected short |
documentDBRevision
Document revision number in the document database, the same as DocumentData.docDBRevision field. |
protected long |
documentUID
Unique document identifier, the same as DocumentData.uid field. |
static java.lang.String |
GENERAL_SEP
Separates other elements - paragraph and sentence neumbers. |
static java.lang.String |
REVISION_SEP
Separates document identificator from revision number. |
Constructor Summary | |
---|---|
protected |
TextUnitID(long documentUID,
int documentDBRevision)
|
Method Summary | |
---|---|
int |
getDocumentDBRevision()
|
long |
getDocumentUID()
|
static TextUnitID |
getInstance()
The recommended way to create new instance of TextUnitID child class. |
static TextUnitID |
load(DataInputStream dis)
The method must return another object, it can not change the this value. |
static void |
releasePools()
The method releases all the text unit IDs in pools. |
abstract void |
store(DataOutputStream dos)
|
abstract java.lang.String |
toNiceMeString()
Returns textual representation of the unit to be printed in duplicity checking reports. |
abstract java.lang.String |
toNiceOtherString()
Returns textual representation of the unit to be printed in duplicity checking reports. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
protected final long documentUID
DocumentData.uid
field.
protected final short documentDBRevision
DocumentData.docDBRevision
field.
public static final java.lang.String REVISION_SEP
public static final java.lang.String GENERAL_SEP
Constructor Detail |
---|
protected TextUnitID(long documentUID, int documentDBRevision)
Method Detail |
---|
public static TextUnitID getInstance()
Constants.CHECK_DUPLICITY_LEVEL
constant.
public int getDocumentDBRevision()
public long getDocumentUID()
public abstract void store(DataOutputStream dos) throws java.io.IOException
java.io.IOException
public static TextUnitID load(DataInputStream dis) throws java.io.IOException
dis
-
java.io.IOException
public static void releasePools()
public abstract java.lang.String toNiceMeString()
public abstract java.lang.String toNiceOtherString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |