public class InputField
extends java.lang.Object
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.
Modifier | Constructor and Description |
---|---|
protected |
InputField(java.lang.String paramName,
java.lang.String value,
SchemaNode schemaNode,
java.lang.String xpath,
InputManager inputManager)
InputField constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getEntityErrors()
returns a list of entity errors found in the value for this InputField
|
java.lang.String |
getFieldName()
Gets the leaf of the xpath attribute for the InputField object.
|
java.lang.String |
getNormalizedXPath()
Returns an xpath containing no indexing for the element corresponding to
this InputField.
|
java.lang.String |
getParamName()
Returns the request parameter name for this field.
|
SchemaNode |
getSchemaNode()
Gets the SchemaNode associated with this InputField.
|
java.lang.String |
getValue()
Gets the value entered in the metadata editor for this field.
|
java.lang.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(java.lang.String paramName)
Sets the paramName attribute of the InputField object
|
void |
setValue(java.lang.String str)
Sets the value attribute of the InputField object.
|
void |
setXPath(java.lang.String xpath)
Sets the xPath attribute of the InputField object
|
java.lang.String |
toString()
Debugging utility returns a string listing key fields and values.
|
protected InputField(java.lang.String paramName, java.lang.String value, SchemaNode schemaNode, java.lang.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 fieldpublic java.lang.String getParamName()
E.g., valueOf(/collectionConfigRecord/tuples/tuple_1_/name)
public void setParamName(java.lang.String paramName)
paramName
- The new paramName valuepublic java.util.List getEntityErrors()
public boolean hasEntityErrors()
public SchemaNode getSchemaNode()
public java.lang.String getXPath()
public void setXPath(java.lang.String xpath)
xpath
- The new xPath valuepublic java.lang.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 java.lang.String getFieldName()
public java.lang.String getValue()
public void setValue(java.lang.String str)
str
- The new value valuepublic boolean isAnyType()
public boolean isAttribute()
public boolean isElement()
public boolean isNillable()
public java.lang.String toString()
toString
in class java.lang.Object