pygplates.XsInteger

class pygplates.XsInteger

Bases: PropertyValue

A property value that represents an integer number. The ‘Xs’ prefix is there since this type of property value is associated with the XML Schema Instance Namespace.

An XsInteger can also be pickled.

Changed in version 0.42: Added pickle support.

__init__(integer_value)

Create an integer property value from an int.

Parameters:

integer_value (int) – the integer value

integer_property = pygplates.XsInteger(integer_value)

Methods

__init__(integer_value)

Create an integer property value from an int.

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.

get_geometry()

Extracts the geometry if this property value contains a geometry.

get_integer()

Returns the integer value.

get_value([time=0])

Extracts the value, of this possibly time-dependent property value, at the reconstruction time.

set_integer(integer_value)

Sets the integer value.

get_integer()

Returns the integer value.

Return type:

int

set_integer(integer_value)

Sets the integer value.

Parameters:

integer_value (int) – the integer value