new Boolean()
Represents a baja:Boolean in BajaScript.
Augments Boolean to be a baja:Boolean.
Extends
Members
-
<static> DEFAULT
-
Default
Booleaninstance.
Methods
-
<static> getBooleanFromIBoolean(iBoolean)
-
Return a
Booleanfrom a BIBoolean.Parameters:
Name Type Description iBooleanbaja.Value any value type implementing BIBoolean
Returns:
- Type
- Boolean
-
<static> getFacetsFromIBoolean(boolVal)
-
Return facets from an IBoolean
Parameters:
Name Type Description boolValbaja.Value Returns:
- Type
- baja.Facets
-
<static> make(b)
-
Make a
Boolean.Parameters:
Name Type Description bBoolean a JavaScript
Booleanvalue.Returns:
- Type
- Boolean
-
decodeFromString(str)
-
Decode a
Booleanfrom aString.Parameters:
Name Type Description strString an encoded
Boolean.Returns:
- Type
- Boolean
-
encodeToString()
-
Encode the
Boolean(itself) to aString.Returns:
- Type
- String
-
equals(obj)
-
Equality test.
Parameters:
Name Type Description objReturns:
- Type
- Boolean
-
equivalent(obj)
-
Equivalence test.
Used to compare if two objects have equivalent state, but might not want to
return true for equals since it it has implied semantics for many
operations. The default implementation returns the result of {@link
Boolean#equals}.Parameters:
Name Type Description objReturns:
- Type
- Boolean
-
getBoolean()
-
Return the
Boolean(itself).Returns:
- Type
- Boolean
-
getDataTypeSymbol()
-
Return the data type symbol.
Used for encoding this data type (primarily for facets).
Returns:
- Type
- String
-
getDisplayTag(obj)
-
Asynchronously get the display tag of this
Enumvalue.Parameters:
Name Type Description objObject the Object Literal used to specify the method's
arguments.Properties
Name Type Argument Description facetsbaja.Facets | Object <optional>
facets used to specify the true
and false text. The argument can also be an Object Literal.Properties
Name Type Argument Description trueTextString <optional>
a baja Format string. If
Boolean
is true, function will return baja.Format(obj.facets.trueText) instead of
'true'.falseTextString <optional>
a baja Format string. If
Boolean
is false, function will return baja.Format(obj.facets.falseText) instead of
'false'.okfunction <optional>
(Deprecated: use Promise) ok callback called
with String value as argument.failfunction <optional>
(Deprecated: use Promise) optional fail
callback.Returns:
- Type
- Promise.<String>
-
getEnum()
-
Return the
Boolean(itself).Returns:
- Type
- Boolean
-
getIcon()
-
Return the Object's Icon.
Returns:
- Type
- baja.Icon
-
getOrdinal()
-
Return the
Enumordinal.Returns:
- Type
- Number
-
getRange()
-
Return the
Enum Range.Returns:
- Type
- baja.EnumRange
-
getTag()
-
Return the
Stringidentifier of thisEnumvalue.Returns:
- Type
- String
-
isActive()
-
Return true if this
Enumvalue is considered to be in an active state.Returns:
- Type
- Boolean
-
make(b)
-
Make a
Boolean.Parameters:
Name Type Description bBoolean a JavaScript
Booleanvalue.Returns:
- Type
- Boolean
-
newCopy()
-
New Copy.
Returns:
- Type
- Boolean
-
toString( [cx])
-
Returns a string representation of the
Boolean(itself).Parameters:
Name Type Argument Description cxbaja.Facets | Object <optional>
used to specify formatting facets. The
argument can also be an Object Literal.Properties
Name Type Argument Description trueTextString <optional>
a baja Format string. If
Booleanis true,
function will return baja.Format(cx.trueText) instead of 'true'.falseTextString <optional>
a baja Format string. If
Booleanis
false, function will return baja.Format(cx.falseText) instead of 'false'.Returns:
returns a Promise if a cx is passed in.