|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.input.InputField
public class InputField
Helper for translating between http request parameters and metadata elements.
The metadata editor creates request parameters named for the accessor each
field uses to obtain its value (e.g., valueOf(/itemRecord/lifecycle/contributors/contributor_2_/person/nameLast)).
This class stores information derived from the parameterName, such as the
SchemaNode
for this field, and provides
information about this node that aids in the processing of its value.
Constructor Summary | |
---|---|
protected |
InputField(String paramName,
String value,
SchemaNode schemaNode,
String xpath,
InputManager inputManager)
InputField constructor. |
Method Summary | |
---|---|
List |
getEntityErrors()
returns a list of entity errors found in the value for this InputField |
String |
getFieldName()
Gets the leaf of the xpath attribute for the InputField object. |
String |
getNormalizedXPath()
Returns an xpath containing no indexing for the element corresponding to this InputField. |
String |
getParamName()
Returns the request parameter name for this field. |
SchemaNode |
getSchemaNode()
Gets the SchemaNode associated with this InputField. |
String |
getValue()
Gets the value entered in the metadata editor for this field. |
String |
getXPath()
Gets the xPath attribute of the InputField object. |
boolean |
hasEntityErrors()
NOT YET DOCUMENTED |
boolean |
isAnyType()
Gets the anyType attribute of the InputField object |
boolean |
isAttribute()
Returns true if this field represents an attribute (as opposed to an element). |
boolean |
isElement()
Returns true if this field represents an element (as opposed to an attribute). |
boolean |
isNillable()
Gets the nillable attribute of the SchemaNode associated with this InputField. |
void |
setParamName(String paramName)
Sets the paramName attribute of the InputField object |
void |
setValue(String str)
Sets the value attribute of the InputField object. |
void |
setXPath(String xpath)
Sets the xPath attribute of the InputField object |
String |
toString()
Debugging utility returns a string listing key fields and values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected InputField(String paramName, String value, SchemaNode schemaNode, String xpath, InputManager inputManager)
paramName
- paramName as received from the requestvalue
- the value as received from the requestschemaNode
- SchemaNode instance for this fieldxpath
- the xpath of this fieldinputManager
- the inputManager instance for this fieldMethod Detail |
---|
public String getParamName()
E.g., valueOf(/collectionConfigRecord/tuples/tuple_1_/name)
public void setParamName(String paramName)
paramName
- The new paramName valuepublic List getEntityErrors()
public boolean hasEntityErrors()
public SchemaNode getSchemaNode()
public String getXPath()
public void setXPath(String xpath)
xpath
- The new xPath valuepublic String getNormalizedXPath()
Note: this is the same path used to key the SchemaNodeMap, so why do we need it as an attribute? Could this accessor just as well return schemaNode.getXPath?
public String getFieldName()
public String getValue()
public void setValue(String str)
str
- The new value valuepublic boolean isAnyType()
public boolean isAttribute()
public boolean isElement()
public boolean isNillable()
public String toString()
toString
in class Object
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |