|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.schema.SchemaField
Represents a field in its entirety. This value uses a loaded Schema to check if values passed in are valid.
In order to enable multiple schemata, you should subclass this class, with each class representing one of the schema. You can hide the constructor call requiring the schema variable (in this class) by having the subclass handle it (since its schema should be fixed).
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Nov 27 1998, JH Created class - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
protected |
SchemaField(Schema newSchema)
Constructor for subclasses only. |
|
SchemaField(Schema newSchema,
String newFieldName)
Create a new property with this field name. |
|
SchemaField(Schema newSchema,
String newFieldName,
String newFieldValue)
Create a new property with this field name and this field value. |
Method Summary | |
String |
getFieldName()
Get the field name. |
String |
getFieldValue()
Get the field value. |
Enumeration |
getPropertyNames()
Get an Enumeration of the property names in this field. |
String |
getPropertyValue(String strPropertyName)
Get the specified property value. |
void |
setFieldName(String newFieldName)
Set the field name. |
void |
setFieldValue(String strValue)
Set the field value. |
void |
setPropertyValue(String strPropertyName,
String strValue)
Set a property to a given value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected SchemaField(Schema newSchema)
public SchemaField(Schema newSchema, String newFieldName)
newFieldName
- is the field name to use.public SchemaField(Schema newSchema, String newFieldName, String newFieldValue)
newFieldName
- is the field name to use.newFieldValue
- is the value to use.Method Detail |
public String getFieldName()
public String getFieldValue()
public String getPropertyValue(String strPropertyName)
public Enumeration getPropertyNames()
public void setFieldName(String newFieldName)
newFieldName
- is the name to set the field to. Must be a valid
field name.public void setFieldValue(String strValue)
strValue
- is the value to set the field to. Use null to
unset the value. Must be a valid value otherwise.public void setPropertyValue(String strPropertyName, String strValue)
strPropertyName
- is the property to set. Must be a valid property
name.strValue
- is the value to set the property to. Use null to unset
the value. Must be a valid value for this property otherwise.public String toString()
toString
in class Object
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |