|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jimmc.roots.RootsRecord | +--jimmc.roots.RootsUnion
RootsUnion represents a marriage or other pairing.
Fields inherited from class jimmc.roots.RootsRecord |
base, comment, editDate, key, keyComment, note1, note2, note2d, sources, sourceString |
Constructor Summary | |
RootsUnion(RootsBase base)
|
Method Summary | |
protected boolean |
addNcv(Ncv nv)
|
boolean |
fieldMatches(java.lang.String fieldName,
java.lang.String pattern)
Return true if the specified field matches the given pattern. |
static RootsUnion[] |
FindRecordList(RootsBase base,
java.lang.String s)
|
RootsRecord[] |
findReference(java.lang.String what)
Find a referenced record. |
java.lang.String |
formatBrief(PrintOptions po)
Format a brief listing of the record |
java.lang.String |
formatBriefBody()
|
void |
formatBriefBody(java.lang.StringBuffer sb)
|
protected void |
formatGedcomBody(java.lang.StringBuffer sb,
int level)
Format the body of a Gedcom record |
protected void |
formatGedcomKey(java.lang.StringBuffer sb,
int level)
Format the key line for a Gedcom record. |
void |
formatNcvBody(java.lang.StringBuffer sb)
Format the remainder of this record |
java.lang.String |
formatNcvType()
Format the type of this record; subclass must override |
java.lang.String |
formatOneLine(PrintOptions po)
Format a one-line summary. |
protected void |
layoutBox(Layout layout,
PrintOptions po,
java.lang.String markKey)
Fill in the layout information for a ctree. |
void |
layoutCtree(Layout layout,
PrintOptions po)
Fill in the layout information for a ctree, including all other boxes for the ctree layout. |
protected void |
link()
Fix up the links in a record that point to another record. |
protected void |
parseDates()
Check and parse any dates in this record into individual fields. |
static RootsUnion |
ParseNcvLines(RootsBase base,
java.lang.String[] lines)
|
void |
println(java.lang.String s)
Print a line to the default output. |
Methods inherited from class jimmc.roots.RootsRecord |
asArray, findListReference, formatGedcom, formatGedcomEvent, formatGedcomItem, formatGedcomKey, formatGedcomReference, formatKey, formatKey, formatKeyLine, formatLabeledItem, formatLabeledItem, formatLabeledItems, formatLabeledItems, formatMedium, formatMultiLine, formatNcv, formatNcvItem, formatNote1, layoutBoxReference, parseDate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootsUnion(RootsBase base)
Method Detail |
public static RootsUnion ParseNcvLines(RootsBase base, java.lang.String[] lines)
protected boolean addNcv(Ncv nv)
addNcv
in class RootsRecord
protected void link()
RootsRecord
link
in class RootsRecord
protected void parseDates()
RootsRecord
parseDates
in class RootsRecord
public static RootsUnion[] FindRecordList(RootsBase base, java.lang.String s)
protected void formatGedcomKey(java.lang.StringBuffer sb, int level)
formatGedcomKey
in class RootsRecord
protected void formatGedcomBody(java.lang.StringBuffer sb, int level)
formatGedcomBody
in class RootsRecord
public java.lang.String formatNcvType()
RootsRecord
formatNcvType
in class RootsRecord
public void formatNcvBody(java.lang.StringBuffer sb)
RootsRecord
formatNcvBody
in class RootsRecord
public java.lang.String formatOneLine(PrintOptions po)
RootsRecord
formatOneLine
in class RootsRecord
public java.lang.String formatBrief(PrintOptions po)
RootsRecord
formatBrief
in class RootsRecord
public java.lang.String formatBriefBody()
public void formatBriefBody(java.lang.StringBuffer sb)
public void layoutCtree(Layout layout, PrintOptions po)
layoutCtree
in class RootsRecord
protected void layoutBox(Layout layout, PrintOptions po, java.lang.String markKey)
layoutBox
in class RootsRecord
layout
- The layout to which we add our box or boxes.po
- Options.markKey
- Put a marker by the record with this key. This can
be either this union or a child.public RootsRecord[] findReference(java.lang.String what)
RootsRecord
findReference
in class RootsRecord
jimmc.roots.RootsRecord
what
- the name of the reference item to followpublic boolean fieldMatches(java.lang.String fieldName, java.lang.String pattern)
fieldMatches
in class RootsRecord
fieldName
- the name of the field to match
pattern
- the pattern to match against.public void println(java.lang.String s)
println
in class RootsRecord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |