|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umich.cac.data.Field
This class encapsulates a a "Field" of a PBS accounting record. A field contains a name, value, and child fields
Field Summary | |
protected java.util.Vector |
childrenFields
A container for child fields |
protected FieldName |
fieldName
Encapsulates the raw name and display name of the field |
protected FieldType |
fieldType
The type of field this is |
protected java.lang.String |
nl
The new line seperator for this system |
protected java.lang.String |
rawValue
The raw value of this field from accounting file |
Constructor Summary | |
Field(FieldName fieldName,
java.lang.String rawValue,
FieldType fieldType)
Constructor |
Method Summary | |
void |
addAttribute(Attribute attribute)
Add an attribute object to this list, in order they should appear |
void |
addChild(Field childField)
Add children Fields to this field. |
java.util.List |
getAttributes()
Return the attributes, in order they were added |
java.util.Vector |
getChildren()
Gets the children Fields of this field |
FieldName |
getFieldName()
Return the FieldName, for unit testing |
FieldType |
getFieldType()
Return the type of field this is |
java.lang.String |
getRawValue()
Returns the "raw" value from PBS encoding. |
protected void |
setRawValue(java.lang.String rawValue)
Returns the "raw" value from PBS encoding. |
java.lang.String |
toXML()
Renders the XML representation of this field, and all of it's children |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected FieldName fieldName
protected FieldType fieldType
protected java.util.Vector childrenFields
protected java.lang.String rawValue
protected java.lang.String nl
Constructor Detail |
public Field(FieldName fieldName, java.lang.String rawValue, FieldType fieldType)
fieldName
- FieldName describing this fieldrawValue
- The value of this field from accounting datafieldType
- The type of fieldMethod Detail |
public FieldName getFieldName()
public FieldType getFieldType()
public java.lang.String getRawValue()
protected void setRawValue(java.lang.String rawValue)
public void addChild(Field childField)
childField
- a child to this fieldpublic java.util.Vector getChildren()
public void addAttribute(Attribute attribute)
attribute
- The attribute to addpublic java.util.List getAttributes()
public java.lang.String toXML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |