|
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.TagField
Tag field
Field
Fields inherited from class MetaTF.Parser.Field |
beginLine |
Fields inherited from interface MetaTF.Parser.HasFields |
cvsheader |
Constructor Summary | |
(package private) |
TagField(int l)
Allocate a new object representing the tag |
(package private) |
TagField(int v,
int l)
Allocate a new object representing the tag |
Method Summary | |
java.lang.Object |
accept(DTDVisitor visitor,
java.lang.Object data)
Accept the visitor |
void |
addField(Field f)
Add a subfield. |
(package private) 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.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. |
(package private) void |
setTag(int i)
Set the value of the tag |
void |
setTag(Value v)
Set the value of the tag |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
TagField(int v, int l)
v
- the tag's valuel
- the line in the DTD at which this tag was foundTagField(int l)
l
- the line in the DTD at which this tag was foundMethod Detail |
public java.lang.String getName()
getName
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
void setTag(int i) throws DTDException
i
- the valueDTDException
- IF i<0public void setTag(Value v) throws DTDException
v
- the valueDTDException
- IF v==null || v is not a NumberValue || the value is negativesetTag(int)
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 subfieldboolean addProperty(java.lang.String type, java.lang.String field, java.lang.String property, Value value, int l) throws DTDException
type = int or null field = tag property.value = "". NumberValue>=0 (1) | value . NumberValue>=0 (1) | encoding . None (2)
addProperty
in class 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 propertyDTDException
- IF property is not well-formedpublic void addField(Field f)
addField
in class Field
MetaTF.Parser.Field
f
- the subfieldpublic int getNumNamedFields()
getNumNamedFields
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 |