pygplates.ScalarType¶
-
class
pygplates.ScalarType¶ Bases:
Boost.Python.instanceThe namespace-qualified type of scalar values.
All comparison operators (==, !=, <, <=, >, >=) are supported. ScalarType is hashable (can be used as a key in a
dict).-
__init__()¶ Raises an exception This class cannot be instantiated from Python
Methods
__init__Raises an exception This class cannot be instantiated from Python create_from_qualified_string(name)[staticmethod] Creates a ScalarTypeinstance from a fully qualified name string.create_gml(name)[staticmethod] Create a scalar type qualified with the gml:prefix (gml:+name).create_gpml(name)[staticmethod] Create a scalar type qualified with the gpml:prefix (gpml:+name).create_xsi(name)[staticmethod] Create a scalar type qualified with the xsi:prefix (xsi:+name).get_name()Returns the unqualified name. get_namespace()Returns the namespace URI. get_namespace_alias()Returns the namespace alias. to_qualified_string()Returns the fully qualified name. -
static
create_from_qualified_string(name)¶ [staticmethod] Creates a
ScalarTypeinstance from a fully qualified name string.Parameters: name (string) – qualified name Return type: ScalarTypeor NoneThe name string should have a
:character separating the namespace alias from the unqualified name, for examplegpml:VelocityColat. If the namespace alias is not recognised (asgpml,gmlorxsi) thengpmlis assumed.An over-qualified name string (eg, containing two or more
:characters) will result inNonebeing returned.gpml_velocity_colat_scalar_type = pygplates.ScalarType.create_from_qualified_string('gpml:VelocityColat')
-
static
create_gml(name)¶ [staticmethod] Create a scalar type qualified with the
gml:prefix (gml:+name).Parameters: name (string) – unqualified name Return type: ScalarType
-
static
create_gpml(name)¶ [staticmethod] Create a scalar type qualified with the
gpml:prefix (gpml:+name).Parameters: name (string) – unqualified name Return type: ScalarTypegpml_velocity_colat_scalar_type = pygplates.ScalarType.create_gpml('VelocityColat')
-
static
create_xsi(name)¶ [staticmethod] Create a scalar type qualified with the
xsi:prefix (xsi:+name).Parameters: name (string) – unqualified name Return type: ScalarType
-
get_name()¶ Returns the unqualified name.
Return type: string This is the fully qualified name minus the
gpml:prefix (if created with create_gpml()).For example,
VelocityColat.
-
get_namespace()¶ Returns the namespace URI.
Return type: string For example, the
gpmlnamespace alias has the namespacehttp://www.gplates.org/gplates.
-
get_namespace_alias()¶ Returns the namespace alias.
Return type: string For example,
gpml(if created with create_gpml()).
-
to_qualified_string()¶ Returns the fully qualified name.
Return type: string For example,
gpml:VelocityColat.
-