DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class AnyTypeInputField

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.InputField
      extended by org.dlese.dpc.schemedit.input.AnyTypeInputField

public class AnyTypeInputField
extends 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.

Author:
ostwald

Constructor Summary
protected AnyTypeInputField(String paramName, String value, SchemaNode schemaNode, String xpath, InputManager inputManager)
          AnyTypeInputField constructor.
 
Method Summary
 String getParseError()
           
 Element getValueElement()
           
 boolean hasParseError()
           
 boolean isEmpty()
           
 String toString()
          Debugging utility returns a string listing key fields and values.
 void updateIndexing(int index)
           
 
Methods inherited from class org.dlese.dpc.schemedit.input.InputField
getEntityErrors, getFieldName, getNormalizedXPath, getParamName, getSchemaNode, getValue, getXPath, hasEntityErrors, isAnyType, isAttribute, isElement, isNillable, setParamName, setValue, setXPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyTypeInputField

protected AnyTypeInputField(String paramName,
                            String value,
                            SchemaNode schemaNode,
                            String xpath,
                            InputManager inputManager)
AnyTypeInputField constructor. Below are examples of typical parameters:
paramName
valueOf(/itemRecord/lifecycle/contributors/contributor_2_/person/emailAlt)
value
anyone@foo.com
xpath
/itemRecord/lifecycle/contributors/contributor[2]/person/emailAlt
normalizedXPath
/itemRecord/lifecycle/contributors/contributor/person/emailAlt
paramName is used with the error-report mechanism to locate the field element in the UI

Parameters:
paramName - paramName as received from the request
value - Description of the Parameter
schemaNode - Description of the Parameter
xpath - Description of the Parameter
normalizedXPath - Description of the Parameter
Method Detail

getValueElement

public Element getValueElement()

isEmpty

public boolean isEmpty()

hasParseError

public boolean hasParseError()

getParseError

public String getParseError()

toString

public String toString()
Debugging utility returns a string listing key fields and values.

Overrides:
toString in class InputField
Returns:
NOT YET DOCUMENTED

updateIndexing

public void updateIndexing(int index)

DLESE Tools
v1.6.0