|
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.TupleField
Tuple field
Field
Fields inherited from class MetaTF.Parser.Field |
beginLine |
Fields inherited from interface MetaTF.Parser.HasFields |
cvsheader |
Constructor Summary | |
(package private) |
TupleField()
Allocate a new object representing a tuple |
(package private) |
TupleField(java.lang.String name)
Allocate a new object representing a tuple |
(package private) |
TupleField(java.lang.String s,
java.util.List fs)
Allocate a new object representing a tuple |
Method Summary | |
java.lang.Object |
accept(DTDVisitor visitor,
java.lang.Object data)
Accept the visitor |
void |
addField(Field f)
Add a subfield to this field |
boolean |
addProperty(java.lang.String type,
java.lang.String field,
java.lang.String property,
Value value,
int l)
Add a property to this field |
(package private) 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.util.List |
getFields()
|
java.lang.String |
getName()
|
int |
getNumNamedFields()
|
int |
getTag()
Get the tag of this field |
java.lang.String |
getType()
|
boolean |
isTagged()
Is this field tagged? |
(package private) 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 |
TupleField(java.lang.String s, java.util.List fs)
s
- the name of the tuplefs
- the list of components of this tupleTupleField()
TupleField(java.lang.String name)
name
- the name of the tupleMethod Detail |
public void addField(Field f)
Field
addField
in class Field
MetaTF.Parser.Field
f
- the subfieldpublic java.util.List getFields()
public java.lang.String getName()
getName
in class Field
MetaTF.Parser.Field
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 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
Field
getTag
in class Field
MetaTF.Parser.Field
NoTagException
- IF this field does not contain a tagpublic boolean isTagged()
Field
isTagged
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 |