Package com.adobe.xfa
Class Bool
java.lang.Object
com.adobe.xfa.Bool
A convenience class that returns the frequently-used EnumAttr
types BOOL_TRUE and BOOL_FALSE. This will save applications
from needing to use "new" to reference these values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumAttrStatic function for returning Off/false/0static EnumAttrgetBool(boolean bValue) Construct an instance from a booleanstatic EnumAttrGet the boolean instance from a stringstatic booleanReturn the boolean value of an enumerated valuestatic booleanReturn the boolean value of an enumerated attributestatic StringtoString(boolean b) Convenience method to return a string for a boolean value.static EnumAttrStatic function for returning On/true/1
-
Constructor Details
-
Bool
public Bool()
-
-
Method Details
-
falseValue
Static function for returning Off/false/0 -
getBool
Construct an instance from a boolean- Parameters:
bValue- the input boolean
-
getBool
Get the boolean instance from a string- Parameters:
sValue- "1" for true, "0" or "" for false- Returns:
- The EnumAttr attribute representing this boolean value.
-
getValue
Return the boolean value of an enumerated value- Parameters:
e- the enumerated value- Returns:
- true or false
-
getValue
Return the boolean value of an enumerated attribute- Parameters:
e- the enumerated attribute- Returns:
- true or false
-
toString
Convenience method to return a string for a boolean value.- Parameters:
b- the boolean value- Returns:
- the String representation
-
trueValue
Static function for returning On/true/1
-