|
const afw_object_type_t * | afw_object_type_internal_create (const afw_adaptor_t *adaptor, const afw_object_t *object_type_object, const afw_pool_t *p, afw_xctx_t *xctx) |
| Create an object type. More...
|
|
const afw_object_type_property_type_t * | afw_object_type_property_type_get (const afw_object_type_t *object_type, const afw_utf8_t *property_name, afw_xctx_t *xctx) |
| Get property type object for property. More...
|
|
const afw_object_type_property_type_t * | afw_object_type_property_type_get_next (const afw_object_type_t *object_type, const afw_iterator_t **iterator, const afw_utf8_t **property_name, afw_xctx_t *xctx) |
| Get next property type for object type. More...
|
|
const afw_value_t * | afw_object_type_property_type_normalize (const afw_object_type_property_type_t *pt, const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx) |
| Normalize a value based on property type. More...
|
|
const afw_value_t * | afw_object_type_property_normalize (const afw_object_type_t *object_type, const afw_utf8_t *property_name, const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx) |
| Normalize a value based an object type and property name. More...
|
|
Provide afw_object interface common support.
◆ afw_object_type_get_property
#define afw_object_type_get_property |
( |
|
object_type, |
|
|
|
property_name, |
|
|
|
xctx |
|
) |
| |
Value:
property_name, xctx)
#define afw_object_get_property(instance, property_name, xctx)
Call method get_property of interface afw_object.
Get a object type property.
- Parameters
-
object_type. | |
property_name | is the object type property name. |
xctx | of caller. |
- Returns
- value of object type property.
Definition at line 97 of file afw_object_type.h.
◆ afw_object_type_get_property_as_utf8
#define afw_object_type_get_property_as_utf8 |
( |
|
object_type_object, |
|
|
|
property_name, |
|
|
|
xctx |
|
) |
| |
Value:
property_name, xctx)
afw_object_old_get_property_as_utf8(const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
Get an object's property value as a string in specified pool.
Get a meta property as utf8.
- Parameters
-
object_type. | |
property_name | is the object type property name. |
xctx | of caller. |
- Returns
- utf8 or NULL if not found.
Definition at line 110 of file afw_object_type.h.
◆ afw_object_type_internal_create()
Create an object type.
- Parameters
-
adaptor | |
object_type_object. | |
p | for result. |
xctx | of caller. |
- Returns
- object type.
Definition at line 62 of file afw_object_type.c.
◆ afw_object_type_property_normalize()
Normalize a value based an object type and property name.
- Parameters
-
object_type. | |
property_name | to get property type for. |
value | to normalize. |
p | to use. |
xctx | of caller. |
- Returns
- normalized value or original value if already normalized.
Definition at line 222 of file afw_object_type.c.
◆ afw_object_type_property_type_get()
Get property type object for property.
- Parameters
-
object_type. | |
property_name | to get property type for. |
xctx | of caller. |
- Returns
- property type or NULL if not found.
If there is not a specific property type object for the named property, the otherProperties property type is returned if available.
Definition at line 111 of file afw_object_type.c.
◆ afw_object_type_property_type_get_next()
Get next property type for object type.
- Parameters
-
object_type. | |
iterator | pointer. Set to NULL before first call. |
property_name | is place to return pointer to property name. |
xctx | of caller. |
- Returns
- property type or NULL if not found.
- Todo:
- FIXME: change after compile. This wastes a lot of time and space.
Definition at line 132 of file afw_object_type.c.
◆ afw_object_type_property_type_normalize()
Normalize a value based on property type.
- Parameters
-
pt. | |
value | to normalize. |
p | to use. |
xctx | of caller. |
- Returns
- normalized value or original value if already normalized.
- Todo:
- FIXME: normalize list entries.
Definition at line 168 of file afw_object_type.c.