|
MetaTF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MetaTF.Parser.Field
Abstract field (part of the symbol table) children are tagField, NamedField, RepeatField, TupleField
TagField
,
NamedField
,
RepeatField
,
TupleField
Field Summary | |
protected int |
beginLine
The line in the DTD where this field was defined |
Fields inherited from interface MetaTF.Parser.HasFields |
cvsheader |
Constructor Summary | |
(package private) |
Field()
|
Method Summary | |
abstract java.lang.Object |
accept(DTDVisitor visitor,
java.lang.Object data)
Accept the visitor |
abstract void |
addField(Field f)
Add a subfield to this field |
(package private) abstract boolean |
addProperty(java.lang.String type,
java.lang.String field,
java.lang.String property,
Value value,
int beginLine)
Add a property to this field |
(package private) abstract void |
checkFields()
Check that this field is well formed i.e. |
abstract boolean |
containsField(java.lang.String s)
Does this field contain a named subfield? |
abstract java.lang.String |
dump(java.lang.String prefix)
Dump this field |
abstract java.lang.String |
getName()
|
abstract int |
getNumNamedFields()
|
abstract int |
getTag()
Get the tag of this field |
abstract java.lang.String |
getType()
|
abstract boolean |
isTagged()
Is this field tagged? |
(package private) abstract 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 |
|
Field Detail |
protected int beginLine
Constructor Detail |
Field()
Method Detail |
public abstract boolean containsField(java.lang.String s)
s
- the name of the subfieldpublic abstract void addField(Field f)
addField
in interface HasFields
f
- the subfieldabstract Field replaceFields(java.util.Map inheritedRecords0, java.util.Map inheritedRecords, java.util.Map inheritedFields)
inheritedRecords0
- Map inheritedRecords
- Map inheritedFields
- Map abstract void checkFields() throws DTDException
DTDException
- IF this field is not well-formedreplaceFields(java.util.Map, java.util.Map, java.util.Map)
abstract boolean addProperty(java.lang.String type, java.lang.String field, java.lang.String property, Value value, int beginLine) throws DTDException
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 abstract int getNumNamedFields()
public abstract int getTag() throws NoTagException
NoTagException
- IF this field does not contain a tagpublic abstract boolean isTagged()
public abstract java.lang.String getName()
public abstract java.lang.String getType()
public abstract java.lang.String dump(java.lang.String prefix)
public abstract 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 |