maiolum.nxdb
Class XMLFID

java.lang.Object
  extended bymaiolum.FID
      extended bymaiolum.nxdb.XMLFID
All Implemented Interfaces:
java.lang.Cloneable

public class XMLFID
extends FID

Author:
Robert Novotny

Field Summary
static java.lang.String NUMERIC_ID_PREFIX
           
 
Constructor Summary
XMLFID(java.lang.String id)
           
 
Method Summary
 java.lang.String getCanonicalString()
           
static void main(java.lang.String[] args)
           
 java.lang.String toDebugString()
           
 java.lang.String toString()
          Returns String representation from this XMLFID object.
 
Methods inherited from class maiolum.FID
clone, equals, getBookID, getChapterID, getSeparator, getVerseID, hashCode, newInstance
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NUMERIC_ID_PREFIX

public static final java.lang.String NUMERIC_ID_PREFIX
See Also:
Constant Field Values
Constructor Detail

XMLFID

public XMLFID(java.lang.String id)
Method Detail

toString

public java.lang.String toString()
Returns String representation from this XMLFID object. This is given as concatenation of chapter id, separator and verse id. For example: "Mt1:1", where ':' is separator. However, if the chapter id starts with a number, a underscore _ character is prepended to the chapter. This is to ensure that the string representation conforms to the XML identification attribute requirements.

Overrides:
toString in class FID

getCanonicalString

public java.lang.String getCanonicalString()
Overrides:
getCanonicalString in class FID

toDebugString

public java.lang.String toDebugString()
Overrides:
toDebugString in class FID

main

public static void main(java.lang.String[] args)