|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fulcrum.intake.model.Field
org.apache.fulcrum.intake.model.StringField
public class StringField
Text field.
| Field Summary |
|---|
| Fields inherited from class org.apache.fulcrum.intake.model.Field |
|---|
alwaysRequired, defaultFieldPackage, defaultValidatorPackage, defaultValue, displayName, emptyValue, getter, group, ifRequiredMessage, initialized, isDebugEnabled, isMultiValued, key, log, mapToObject, message, name, onError, parser, required, retrievable, setFlag, setter, validated, validator, validFlag |
| Constructor Summary | |
|---|---|
StringField(XmlField field,
Group group)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doSetValue()
Sets the value of the field from data in the parser. |
protected String |
getDefaultValidator()
Produces the fully qualified class name of the default validator. |
void |
setDefaultValue(String prop)
Sets the default value for a String field |
void |
setEmptyValue(String prop)
Set the empty Value. |
void |
setRequired(boolean v,
String message)
Set the value of required. |
| Methods inherited from class org.apache.fulcrum.intake.model.Field |
|---|
dispose, doSetValue, getDefault, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getGroup, getHTMLString, getInitialValue, getKey, getLocale, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, toString, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringField(XmlField field,
Group group)
throws IntakeException
field - xml field definition objectgroup - xml group definition object
IntakeException - thrown by superclass| Method Detail |
|---|
protected String getDefaultValidator()
getDefaultValidator in class Fieldpublic void setDefaultValue(String prop)
setDefaultValue in class Fieldprop - Parameter for the default valuespublic void setEmptyValue(String prop)
setEmptyValue in class Fieldprop - The value to use if the field is empty.protected void doSetValue()
doSetValue in class Field
public void setRequired(boolean v,
String message)
setRequired in class Fieldv - Value to assign to required.message - an error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||