|
||||||||||
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.BooleanField
public class BooleanField
Processor for boolean fields.
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 | |
---|---|
BooleanField(XmlField field,
Group group)
Constructor. |
Method Summary | |
---|---|
boolean |
booleanValue()
Gets the boolean value of the field. |
protected void |
doSetValue()
Sets the value of the field from data in the parser. |
protected String |
getDefaultValidator()
A suitable validator. |
protected Object |
getSafeEmptyValue()
Provides access to emptyValue such that the value returned will be acceptable as an argument parameter to Method.invoke. |
void |
setDefaultValue(String prop)
Sets the default value for a Boolean field |
void |
setEmptyValue(String prop)
Set the empty Value. |
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, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, toString, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanField(XmlField field, Group group) throws IntakeException
field
- xml field definition objectgroup
- xml group definition object
IntakeException
- thrown by superclassMethod Detail |
---|
public void setDefaultValue(String prop)
setDefaultValue
in class Field
prop
- Parameter for the default valuespublic void setEmptyValue(String prop)
setEmptyValue
in class Field
prop
- The value to use if the field is empty.protected Object getSafeEmptyValue()
getSafeEmptyValue
in class Field
protected String getDefaultValidator()
getDefaultValidator
in class Field
protected void doSetValue()
doSetValue
in class Field
public boolean booleanValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |