public class OmniClassNumber
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_LEVELS |
static int |
FORMAT_DASH_SPACE |
static int |
FORMAT_DOT |
Constructor and Description |
---|
OmniClassNumber(java.lang.String number) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format() |
java.lang.String |
format(int format,
boolean zeroPad) |
java.lang.String |
format(int format,
boolean zeroPad,
int numberOfLevels) |
int |
getLevel() |
java.lang.String |
getNumber(int level) |
java.lang.String |
getPrefix(int level) |
int |
getTable() |
java.lang.String |
getTitle() |
boolean |
isValid() |
static void |
main(java.lang.String[] args) |
void |
setTitle(java.lang.String title) |
java.lang.String |
toString() |
public static final int FORMAT_DOT
public static final int FORMAT_DASH_SPACE
public static final int ALL_LEVELS
public int getLevel()
public java.lang.String getNumber(int level)
public java.lang.String getPrefix(int level)
public int getTable()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isValid()
public java.lang.String format()
public java.lang.String format(int format, boolean zeroPad)
public java.lang.String format(int format, boolean zeroPad, int numberOfLevels)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)