Package security.whisper.javastix.common
Class StixBoolean
java.lang.Object
security.whisper.javastix.common.StixBoolean
Wrapper for boolean that is used in Stix to track if the boolean value was User provided.
Custom class is used instead of a Boolean in order to provide a more robust api
-
Constructor Summary
ConstructorsConstructorDescriptionDefaults to StixBoolean value to false.StixBoolean(boolean stixBooleanValue) StixBoolean(boolean stixBooleanValue, boolean isDefinedValue) StixBoolean(String booleanString) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIndicates that the boolean value was explicitly defined, even if the value was false, and the original object's property defaults to false if no value is provided.toString()
-
Constructor Details
-
StixBoolean
public StixBoolean(boolean stixBooleanValue) -
StixBoolean
public StixBoolean(boolean stixBooleanValue, boolean isDefinedValue) -
StixBoolean
public StixBoolean()Defaults to StixBoolean value to false. Sets isDefinedValue to false -
StixBoolean
-
-
Method Details
-
getStixBooleanValue
public boolean getStixBooleanValue() -
isdefinedValue
public boolean isdefinedValue()Indicates that the boolean value was explicitly defined, even if the value was false, and the original object's property defaults to false if no value is provided.- Returns:
- boolean indicating if the value was defined.
-
toString
-