Wp.SpaType¶
- Subclasses:
None
Methods¶
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Wp.SpaType¶
- Abstract:
No
- classmethod from_name(name)¶
- Parameters:
name (
str
) – the name to look up- Returns:
the corresponding type id or
Wp.SPA_TYPE_INVALID
if not found- Return type:
Looks up the type id from a given type name.
- get_object_id_values_table()¶
- Returns:
the table with the values that can be stored in the special “id” field of an object of the given self
- Return type:
Gets the table with the values that can be stored in the special “id” field of an object of the given self.
Object pods (see
Wp.SpaPod
) always have a special “id” field along with other fields that can be defined. This “id” field can only store values of a specific SPA_TYPE_Id type. This function returns the table that contains the possible values for that field.
- get_values_table()¶
- Returns:
the associated WpSpaIdTable that contains possible values or object fields for this type, or
None
- Return type:
Gets the values table of an SPA type.
- is_fundamental()¶
-
Checks if an SPA type is a fundamental type.
- is_id()¶
-
Checks if an SPA type is an Id type.
- is_object()¶
-
Checks if an SPA type is an Object type.
- name()¶
-
Gets the name of an SPA type.
- parent()¶
- Returns:
the direct parent type of the given self; if the type is fundamental (i.e. has no parent), the returned type is the same as self
- Return type:
Gets the parent type of an SPA type.