|
MetaTF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MetaTF.Parser.Field | +--MetaTF.Parser.RepeatField
Repeat field
Field
Fields inherited from class MetaTF.Parser.Field |
beginLine |
Fields inherited from interface MetaTF.Parser.HasFields |
cvsheader |
Constructor Summary | |
(package private) |
RepeatField()
|
Method Summary | |
java.lang.Object |
accept(DTDVisitor visitor,
java.lang.Object data)
Accept the visitor |
void |
addField(Field f)
Add a field. |
(package private) void |
addField(TupleField f)
|
boolean |
addProperty(java.lang.String type,
java.lang.String field,
java.lang.String property,
Value value,
int l)
Add a property to this field |
void |
checkFields()
Check that this field is well formed i.e. |
boolean |
containsField(java.lang.String s)
Does this field contain a named subfield? |
java.lang.String |
dump(java.lang.String prefix)
Dump this field |
java.lang.String |
getName()
|
int |
getNumNamedFields()
|
NamedField |
getRepeat()
|
Field |
getRepeatable()
|
int |
getTag()
Get the tag of this field |
java.lang.String |
getType()
|
boolean |
isTagged()
Is this field tagged? |
Field |
replaceFields(java.util.Map inheritedRecords0,
java.util.Map inheritedRecords,
java.util.Map inheritedFields)
Do a macro replacement of any fields that do not have properties defined locally. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
RepeatField()
Method Detail |
public void addField(Field f)
addField
in class Field
f
- the field to be addedvoid addField(TupleField f)
public NamedField getRepeat()
public Field getRepeatable()
public Field replaceFields(java.util.Map inheritedRecords0, java.util.Map inheritedRecords, java.util.Map inheritedFields)
Field
replaceFields
in class Field
MetaTF.Parser.Field
inheritedRecords0
- Map inheritedRecords
- Map inheritedFields
- Map public void checkFields() throws DTDException
Field
checkFields
in class Field
MetaTF.Parser.Field
DTDException
- IF this field is not well-formedField.replaceFields(java.util.Map, java.util.Map, java.util.Map)
public boolean containsField(java.lang.String s)
Field
containsField
in class Field
MetaTF.Parser.Field
s
- the name of the subfieldpublic boolean addProperty(java.lang.String type, java.lang.String field, java.lang.String property, Value value, int l) throws DTDException
Field
addProperty
in class Field
MetaTF.Parser.Field
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 int getNumNamedFields()
getNumNamedFields
in class Field
MetaTF.Parser.Field
public int getTag() throws NoTagException
getTag
in class Field
NoTagException
- ALWAYSpublic boolean isTagged()
Field
isTagged
in class Field
MetaTF.Parser.Field
public java.lang.String getName()
getName
in class Field
MetaTF.Parser.Field
public java.lang.String getType()
getType
in class Field
MetaTF.Parser.Field
public java.lang.String dump(java.lang.String prefix)
Field
dump
in class Field
MetaTF.Parser.Field
public java.lang.Object accept(DTDVisitor visitor, java.lang.Object data)
Field
accept
in class Field
|
MetaTF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |