|
MetaTF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MetaTF.Parser.Record
Record
Fields inherited from interface MetaTF.Parser.HasFields |
cvsheader |
Fields inherited from interface MetaTF.Parser.HasProperties |
cvsheader |
Constructor Summary | |
(package private) |
Record(java.lang.String s)
Allocate a new object representing a record |
|
Record(java.lang.String s,
int l)
Allocate a new object representing a record |
Method Summary | |
java.lang.Object |
accept(DTDVisitor visitor,
java.lang.Object data)
Accept the visitor |
void |
addField(Field f)
Add a field to this section, record or field |
void |
addProperty(java.lang.String t,
java.lang.String f,
java.lang.String p,
Value v,
int l)
Add a property to this section or record |
(package private) void |
checkFields()
Check that the field is well formed i.e. |
int |
compareTo(java.lang.Object r)
Compare the name of this record |
java.lang.String |
dump(java.lang.String prefix)
Dump a representation of this object |
Field |
getField()
|
java.lang.String |
getName()
|
int |
getNumNamedFields()
|
Section |
getSection()
|
int |
getTag()
Get the tag of this field |
boolean |
isTagged()
Is this field tagged |
(package private) void |
replaceFields(java.util.Map inheritedFields0,
java.util.Map inheritedRecords,
java.util.Map inheritedFields)
Do a macro replacement of any fields that do not have properties defined locally. |
(package private) void |
setSection(Section s)
Set the section that this record is defined in |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Record(java.lang.String s, int l)
s
- the name of the recordl
- the line in the DTD where this record's definition startedRecord(java.lang.String s)
s
- the name of the recordMethod Detail |
void replaceFields(java.util.Map inheritedFields0, java.util.Map inheritedRecords, java.util.Map inheritedFields)
inheritedRecords0
- Map inheritedRecords
- Map inheritedFields
- Map void checkFields() throws DTDException
DTDException
- IF this field is not well-formedreplaceFields(java.util.Map, java.util.Map, java.util.Map)
public int getTag() throws NoTagException
NoTagException
- IF this field does not contain a tagpublic boolean isTagged()
public java.lang.String getName()
public Field getField()
public int getNumNamedFields()
public void addField(Field f)
HasFields
addField
in interface HasFields
MetaTF.Parser.HasFields
f
- the fieldDTDException
- IF this action is improperpublic void addProperty(java.lang.String t, java.lang.String f, java.lang.String p, Value v, int l) throws DTDException
HasProperties
addProperty
in interface HasProperties
MetaTF.Parser.HasProperties
type
- the typefield
- the name of the field. The property is only added if the field names matchproperty
- the propertyvalue
- the value of the propertybeginLine
- the line in the DTD at which this property was definedDTDException
- public Section getSection()
void setSection(Section s)
the
- name of the sectionpublic int compareTo(java.lang.Object r)
compareTo
in interface java.lang.Comparable
the
- record to be comparedpublic java.lang.String dump(java.lang.String prefix)
prefix
- an indentiyfing prefixpublic java.lang.Object accept(DTDVisitor visitor, java.lang.Object data)
|
MetaTF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |