public abstract class TextUnitID extends Object implements Comparable
Constants.CHECK_DUPLICITY_LEVEL
).Modifier and Type | Field and Description |
---|---|
static String |
GENERAL_SEP
Separates other elements - paragraph and sentence neumbers.
|
static String |
REVISION_SEP
Separates document identificator from revision number.
|
Modifier and Type | Method and Description |
---|---|
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 String |
toNiceMeString()
Returns textual representation of the unit to be printed in duplicity checking reports.
|
abstract String |
toNiceOtherString()
Returns textual representation of the unit to be printed in duplicity checking reports.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
public static final String REVISION_SEP
public static final String GENERAL_SEP
public static TextUnitID getInstance()
Constants.CHECK_DUPLICITY_LEVEL
constant.public int getDocumentDBRevision()
public long getDocumentUID()
public abstract void store(DataOutputStream dos) throws IOException
IOException
public static TextUnitID load(DataInputStream dis) throws IOException
dis
- IOException
public static void releasePools()
public abstract String toNiceMeString()
public abstract String toNiceOtherString()
Copyright © 2016 Egothor. All Rights Reserved.