maiolum
Class FID
java.lang.Object
maiolum.FID
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- XMLFID
- public class FID
- extends java.lang.Object
- implements java.lang.Cloneable
The FID class is a container
wrapping identifier for bible verse (typical identifier
is "Mt1:1"). It contains methods to hold
individual verse and chapter components, and to parse
these components from the string.
|
Constructor Summary |
FID(java.lang.String id)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FID
public FID(java.lang.String id)
newInstance
public static FID newInstance(java.lang.String id)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getSeparator
public char getSeparator()
getChapterID
public java.lang.String getChapterID()
getVerseID
public java.lang.String getVerseID()
getBookID
public java.lang.String getBookID()
toDebugString
public java.lang.String toDebugString()
getCanonicalString
public java.lang.String getCanonicalString()
toString
public java.lang.String toString()
- Returns String representation form
FID
object. This is given as concatenation of chapter id, separator and
verse id. For example: "Mt1:1", where ':' is separator.
clone
public java.lang.Object clone()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
main
public static void main(java.lang.String[] args)