|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumich.cac.pbs.FieldFactory
Singleton takes a String from the PBS file, and returns the proper Field object based on the name of the field, and the field value.
Example:
//This would be coming from PBS String nameField = "date"; String valueField = "10/12/02 10:11:11"; //Grab the dateNode Field dateNode = FieldFactory.getInstance().getField(nameField, valueField);
Method Summary | |
Field |
getField(FieldName fieldName,
java.lang.String fieldValue)
Helper method to return the Field object when the FieldName and FieldValue are known |
Field |
getField(java.lang.String pbsField,
java.lang.String fieldValue)
Return the appropriate Field object based on the fieldName and fieldValue, or null if no match is found |
static FieldFactory |
getInstance()
Get singleton instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FieldFactory getInstance()
public Field getField(java.lang.String pbsField, java.lang.String fieldValue)
pbsField
- The name of the field, like "etime"fieldValue
- The corresponding value, like "12330404"
public Field getField(FieldName fieldName, java.lang.String fieldValue)
fieldName
- Name of the fieldfieldValue
- Value of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |