pygplates.XsBoolean
- class pygplates.XsBoolean
Bases:
PropertyValue
A property value that represents a boolean value. The ‘Xs’ prefix is there since this type of property value is associated with the XML Schema Instance Namespace.
An XsBoolean can also be pickled.
Changed in version 0.42: Added pickle support.
- __init__(boolean_value)
Create a boolean property value from a boolean value.
- Parameters:
boolean_value (bool) – the boolean value
boolean_property = pygplates.XsBoolean(boolean_value)
Methods
__init__
(boolean_value)Create a boolean property value from a boolean value.
accept_visitor
(visitor)Accept a property value visitor so that it can visit this property value.
clone
()Create a duplicate of this property value (derived) instance, including a recursive copy of any nested property values that this instance might contain.
Returns the boolean value.
get_geometry
()Extracts the
geometry
if this property value contains a geometry.get_value
([time=0])Extracts the value, of this possibly time-dependent property value, at the reconstruction time.
set_boolean
(boolean_value)Sets the boolean value.
- get_boolean()
Returns the boolean value.
- Return type:
bool
- set_boolean(boolean_value)
Sets the boolean value.
- Parameters:
boolean_value (bool) – the boolean value