|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.attributes.DataType<Boolean>
org.dasein.attributes.types.BooleanFactory.BooleanAttribute
public static class BooleanFactory.BooleanAttribute
Implements the rules around a boolean value.
Last modified: $Date: 2009/01/30 23:01:49 $
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dasein.attributes.DataType |
|---|
DataType.InputType |
| Constructor Summary | |
|---|---|
BooleanFactory.BooleanAttribute(String grp,
Number idx,
boolean ml,
boolean mv,
boolean req)
Constructs a boolean attribute instance. |
|
| Method Summary | |
|---|---|
Collection<Boolean> |
getChoices()
Provides a list of values considered valid for this data type. |
DataTypeFactory<Boolean> |
getFactory()
|
DataType.InputType |
getInputType()
|
Boolean |
getValue(Object val)
Given a raw value from some source, this method will provide a Java Boolean instance. |
boolean |
isValidChoice(Boolean b)
Verifies that the specified value is valid according to the rules of this data type. |
String |
toString()
|
| Methods inherited from class org.dasein.attributes.DataType |
|---|
equals, getGroup, getIndex, getName, getParameters, getSize, getTranslatedValue, getValues, hashCode, isMultiLingual, isMultiValued, isRequired |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanFactory.BooleanAttribute(String grp,
Number idx,
boolean ml,
boolean mv,
boolean req)
grp - the group of the data type.idx - the index of the data type.ml - true if the boolean is multi-lingualmv - true if the boolean supports multiple valuesreq - true if a value is required| Method Detail |
|---|
public Collection<Boolean> getChoices()
DataTypenull.
getChoices in class DataType<Boolean>true and falsepublic DataTypeFactory<Boolean> getFactory()
getFactory in class DataType<Boolean>public DataType.InputType getInputType()
getInputType in class DataType<Boolean>DataType.InputType.SELECT instancepublic Boolean getValue(Object val)
Boolean instance. This raw value can be a string
('true' or 'false'), a boolean, or a number (non-zero is true, zero is false).
getValue in class DataType<Boolean>val - the raw value
public boolean isValidChoice(Boolean b)
isValidChoice in class DataType<Boolean>b - the value being validated
public String toString()
toString in class DataType<Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||