public class LocationFieldDesc extends FieldDesc<Location>
Constructor and Description |
---|
LocationFieldDesc()
Default constructor with no arguments, useful for cases where the
descriptor is configured from XML elements.
|
LocationFieldDesc(java.lang.String fieldName)
Constructor taking a field name.
|
Modifier and Type | Method and Description |
---|---|
DataType |
getFieldType()
Get the field type for this field description
|
boolean |
isValid(Location value)
Determines whether the given location is valid.
|
Location |
parse(java.lang.String stringVal)
Parse a string into a location.
|
Location |
parseValueIntoRecord(DataRecord rec,
java.lang.String value)
Parse the string value, and store it in a location field in the
specified data record.
|
protected void |
setValues(org.w3c.dom.NodeList valueList)
Set the values for this field description.
|
void |
storeDefaultIntoRecord(DataRecord rec)
Store the default value into the data record provided.
|
org.w3c.dom.Element |
toXml(org.w3c.dom.Document doc)
Convert this field description into an XML element for the specified
document.
|
addSourceField, applyTransform, getDefaultValue, getFieldName, getLookupIndexField, getLookupTable, getLookupValueField, getSourceFields, getTransform, isMultiValue, loadFromXml, setDefaultValue, setFieldName, setMultiValue
public LocationFieldDesc()
public LocationFieldDesc(java.lang.String fieldName)
fieldName
- the field name for this descriptorpublic DataType getFieldType()
getFieldType
in class FieldDesc<Location>
public boolean isValid(Location value)
public Location parse(java.lang.String stringVal)
public Location parseValueIntoRecord(DataRecord rec, java.lang.String value)
parseValueIntoRecord
in class FieldDesc<Location>
rec
- the DataRecord to parse the value intovalue
- the String value to be parsedprotected void setValues(org.w3c.dom.NodeList valueList)
public void storeDefaultIntoRecord(DataRecord rec)
storeDefaultIntoRecord
in class FieldDesc<Location>
rec
- the DataRecord to store the value intopublic org.w3c.dom.Element toXml(org.w3c.dom.Document doc)