Top | ![]() |
![]() |
![]() |
![]() |
GXmlGomBasePropertyGXmlGomBaseProperty — Base class for properties implementing GXmlGomProperty interface. |
#define | GXML_TYPE_GOM_BASE_PROPERTY |
struct | GXmlGomBaseProperty |
struct | GXmlGomBasePropertyClass |
#define | GXML_TYPE_GOM_STRING |
struct | GXmlGomString |
struct | GXmlGomStringClass |
#define | GXML_TYPE_GOM_ARRAY_STRING |
struct | GXmlGomArrayString |
struct | GXmlGomArrayStringClass |
#define | GXML_TYPE_GOM_XSD_ARRAY_STRING |
struct | GXmlGomXsdArrayString |
struct | GXmlGomXsdArrayStringClass |
#define | GXML_TYPE_GOM_DOUBLE |
struct | GXmlGomDouble |
struct | GXmlGomDoubleClass |
#define | GXML_TYPE_GOM_FLOAT |
struct | GXmlGomFloat |
struct | GXmlGomFloatClass |
#define | GXML_TYPE_GOM_INT |
struct | GXmlGomInt |
struct | GXmlGomIntClass |
#define | GXML_TYPE_GOM_BOOLEAN |
struct | GXmlGomBoolean |
struct | GXmlGomBooleanClass |
#define | GXML_TYPE_GOM_ENUM |
struct | GXmlGomEnum |
struct | GXmlGomEnumClass |
#define | GXML_TYPE_GOM_DATE |
struct | GXmlGomDate |
struct | GXmlGomDateClass |
#define | GXML_TYPE_GOM_DATE_TIME |
struct | GXmlGomDateTime |
struct | GXmlGomDateTimeClass |
GXmlGomProperty | |
struct | GXmlGomPropertyIface |
gboolean gxml_gom_base_property_validate_value (GXmlGomBaseProperty *self
,const gchar *val
);
Takes a string and check if it can be valid for this property.
gchar *
gxml_gom_base_property_get_value (GXmlGomBaseProperty *self
);
Get and return the current value of the "value" property.
Attribute's value in the parent GXmlDomElement using a string.
Implementation should take care to validate value before to set or parse from XML document.
void gxml_gom_base_property_set_value (GXmlGomBaseProperty *self
,const gchar *value
);
Set the value of the "value" property to value
.
Attribute's value in the parent GXmlDomElement using a string.
Implementation should take care to validate value before to set or parse from XML document.
self |
the GXmlGomBaseProperty instance to modify |
|
value |
the new value of the "value" property |
gchar ** gxml_gom_array_string_get_values (GXmlGomArrayString *self
,int *result_length1
);
void gxml_gom_array_string_initialize_strings (GXmlGomArrayString *self
,gchar **strs
,int strs_length1
);
Convenient method to initialize array of values from an array of strings. Values are taken and should not be freed after call initialization.
gboolean
gxml_gom_array_string_is_valid_value (GXmlGomArrayString *self
);
Returns true if current value in attribute is included in the array of values.
void gxml_gom_array_string_select (GXmlGomArrayString *self
,gint index
);
Select one string from array at index:
gboolean gxml_gom_array_string_search (GXmlGomArrayString *self
,const gchar *str
);
Check if string is in array
void gxml_gom_xsd_array_string_load (GXmlGomXsdArrayString *self
,GError **error
);
Load list of strings from a GFile, parsing using an GXmlGomXsdSchema object and searching for GXmlIXsdSimpleType definition with name "simple-type".
self |
the GXmlGomXsdArrayString instance |
|
error |
location to store the error occuring, or |
const gchar *
gxml_gom_xsd_array_string_get_simple_type
(GXmlGomXsdArrayString *self
);
Get and return the current value of the "simple-type" property.
Name of GXmlIXsdSimpleType to use as source.
void gxml_gom_xsd_array_string_set_simple_type (GXmlGomXsdArrayString *self
,const gchar *value
);
Set the value of the "simple-type" property to value
.
Name of GXmlIXsdSimpleType to use as source.
self |
the GXmlGomXsdArrayString instance to modify |
|
value |
the new value of the "simple-type" property |
GFile *
gxml_gom_xsd_array_string_get_source (GXmlGomXsdArrayString *self
);
Get and return the current value of the "source" property.
A GFile source to read from, simple type definitions in an XSD file type.
void gxml_gom_xsd_array_string_set_source (GXmlGomXsdArrayString *self
,GFile *value
);
Set the value of the "source" property to value
.
A GFile source to read from, simple type definitions in an XSD file type.
self |
the GXmlGomXsdArrayString instance to modify |
|
value |
the new value of the "source" property |
gdouble
gxml_gom_double_get_double (GXmlGomDouble *self
);
Retrive current value.
void gxml_gom_double_set_double (GXmlGomDouble *self
,gdouble value
);
Sets current value.
guint
gxml_gom_double_get_decimals (GXmlGomDouble *self
);
Get and return the current value of the "decimals" property.
Set number of decimals to write out as GXmlGomElement's property. Default is 4.
void gxml_gom_double_set_decimals (GXmlGomDouble *self
,guint value
);
Set the value of the "decimals" property to value
.
Set number of decimals to write out as GXmlGomElement's property. Default is 4.
gfloat
gxml_gom_float_get_float (GXmlGomFloat *self
);
Retrive current value.
void gxml_gom_float_set_float (GXmlGomFloat *self
,gfloat value
);
Sets current value.
gint
gxml_gom_int_get_integer (GXmlGomInt *self
);
Retrive current value.
void gxml_gom_int_set_integer (GXmlGomInt *self
,gint value
);
Sets current value.
gboolean
gxml_gom_boolean_get_boolean (GXmlGomBoolean *self
);
Retrive current value.
void gxml_gom_boolean_set_boolean (GXmlGomBoolean *self
,gboolean value
);
Sets current value.
void gxml_gom_enum_initialize_enum (GXmlGomEnum *self
,GType enum_type
);
Convenient method to initialize internal enum type.
void gxml_gom_enum_set_enum (GXmlGomEnum *self
,gint value
);
Sets current value.
GType
gxml_gom_enum_get_enum_type (GXmlGomEnum *self
);
Get and return the current value of the "enum-type" property.
Enum type used by property.
void gxml_gom_enum_set_enum_type (GXmlGomEnum *self
,GType value
);
Set the value of the "enum-type" property to value
.
Enum type used by property.
void gxml_gom_date_get_date (GXmlGomDate *self
,GDate *result
);
Retrives current value.
void gxml_gom_date_set_date (GXmlGomDate *self
,GDate *date
);
Sets current value.
GDateTime *
gxml_gom_date_time_get_datetime (GXmlGomDateTime *self
);
Retrives current value.
void gxml_gom_date_time_set_datetime (GXmlGomDateTime *self
,GDateTime *dt
);
Sets current value.
const gchar *
gxml_gom_date_time_get_format (GXmlGomDateTime *self
);
Get and return the current value of the "format" property.
void gxml_gom_date_time_set_format (GXmlGomDateTime *self
,const gchar *value
);
Set the value of the "format" property to value
.
gboolean gxml_gom_property_validate_value (GXmlGomProperty *self
,const gchar *val
);
Takes a string and check if it is a valid value for property
gchar *
gxml_gom_property_get_value (GXmlGomProperty *self
);
Get and return the current value of the "value" property.
Attribute's value in the parent GXmlDomElement using a string.
Implementation should take care to validate value before to set or parse from XML document.
void gxml_gom_property_set_value (GXmlGomProperty *self
,const gchar *value
);
Set the value of the "value" property to value
.
Attribute's value in the parent GXmlDomElement using a string.
Implementation should take care to validate value before to set or parse from XML document.
#define GXML_TYPE_GOM_BASE_PROPERTY (gxml_gom_base_property_get_type ())
The type for GXmlGomBaseProperty.
struct GXmlGomBaseProperty { GObject parent_instance; GXmlGomBasePropertyPrivate * priv; };
Base class for properties implementing GXmlGomProperty interface.
struct GXmlGomBasePropertyClass { GObjectClass parent_class; gboolean (*validate_value) (GXmlGomBaseProperty* self, const gchar* val); gchar* (*get_value) (GXmlGomBaseProperty* self); void (*set_value) (GXmlGomBaseProperty* self, const gchar* value); };
The class structure for GXML_TYPE_GOM_BASE_PROPERTY
. All the fields in this structure are private and should never be accessed directly.
virtual method called by |
||
getter method for the abstract property "value" |
||
setter method for the abstract property "value" |
#define GXML_TYPE_GOM_STRING (gxml_gom_string_get_type ())
The type for GXmlGomString.
struct GXmlGomString { GXmlGomBaseProperty parent_instance; GXmlGomStringPrivate * priv; gchar* _value; };
Convenient class to handle GXmlGomElement's attributes using validated string using Regular Expressions.
struct GXmlGomStringClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_STRING
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_ARRAY_STRING (gxml_gom_array_string_get_type ())
The type for GXmlGomArrayString.
struct GXmlGomArrayString { GXmlGomBaseProperty parent_instance; GXmlGomArrayStringPrivate * priv; gchar* _value; gchar** _values; gint _values_length1; };
Convenient class to handle a GXmlGomElement's attribute using a list of pre-defined and unmutable values.
struct GXmlGomArrayStringClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_ARRAY_STRING
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_XSD_ARRAY_STRING (gxml_gom_xsd_array_string_get_type ())
The type for GXmlGomXsdArrayString.
struct GXmlGomXsdArrayString { GXmlGomArrayString parent_instance; GXmlGomXsdArrayStringPrivate * priv; GFile* _source; gchar* _simple_type; };
Convenient class to handle a GXmlGomElement's attribute using a list of pre-defined and unmutable values, taken from an GXmlIXsdSimpleType definition
struct GXmlGomXsdArrayStringClass { GXmlGomArrayStringClass parent_class; };
The class structure for GXML_TYPE_GOM_XSD_ARRAY_STRING
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_DOUBLE (gxml_gom_double_get_type ())
The type for GXmlGomDouble.
struct GXmlGomDouble { GXmlGomBaseProperty parent_instance; GXmlGomDoublePrivate * priv; gdouble _value; };
Convenient class to handle GXmlGomElement's attributes using double pressition floats as sources of values.
Property is represented as a string.
struct GXmlGomDoubleClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_DOUBLE
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_FLOAT (gxml_gom_float_get_type ())
The type for GXmlGomFloat.
struct GXmlGomFloat { GXmlGomDouble parent_instance; GXmlGomFloatPrivate * priv; };
Convenient class to handle GXmlGomElement's attributes using floats as sources of values.
Property is represented as a string.
struct GXmlGomFloatClass { GXmlGomDoubleClass parent_class; };
The class structure for GXML_TYPE_GOM_FLOAT
. All the fields in this structure are private and should never be accessed directly.
struct GXmlGomInt { GXmlGomBaseProperty parent_instance; GXmlGomIntPrivate * priv; gint _value; };
Convenient class to handle GXmlGomElement's attributes using a integers as sources of values.
Property is represented as a string.
struct GXmlGomIntClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_INT
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_BOOLEAN (gxml_gom_boolean_get_type ())
The type for GXmlGomBoolean.
struct GXmlGomBoolean { GXmlGomBaseProperty parent_instance; GXmlGomBooleanPrivate * priv; gboolean _value; };
Convenient class to handle GXmlGomElement's attributes using a boolean ('true' and 'false') as sources of values.
Property is represented as a string, using 'true' or 'false'.
struct GXmlGomBooleanClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_BOOLEAN
. All the fields in this structure are private and should never be accessed directly.
struct GXmlGomEnum { GXmlGomBaseProperty parent_instance; GXmlGomEnumPrivate * priv; gint _value; GType _enum_type; };
Convenient class to handle GXmlGomElement's attributes using a G_TYPE_ENUM
as a source of values.
Enumeration is represented as a string, using its name, independent of value possition in enumeration.
struct GXmlGomEnumClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_ENUM
. All the fields in this structure are private and should never be accessed directly.
struct GXmlGomDate { GXmlGomBaseProperty parent_instance; GXmlGomDatePrivate * priv; GDate _value; };
Convenient class to handle GXmlGomElement's attributes using a GDate as sources of values.
Property is represented as a string using a Y
-m
-d
format
struct GXmlGomDateClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_DATE
. All the fields in this structure are private and should never be accessed directly.
#define GXML_TYPE_GOM_DATE_TIME (gxml_gom_date_time_get_type ())
The type for GXmlGomDateTime.
struct GXmlGomDateTime { GXmlGomBaseProperty parent_instance; GXmlGomDateTimePrivate * priv; GDateTime* _value; };
Convenient class to handle GXmlGomElement's attributes using a GDateTime as sources of values.
Timestamp is considered in local time.
Property is represented as a string using a "format" and
method. If "format" is not set 'g_date_time_format()
FT
%T' format is used by default.
struct GXmlGomDateTimeClass { GXmlGomBasePropertyClass parent_class; };
The class structure for GXML_TYPE_GOM_DATE_TIME
. All the fields in this structure are private and should never be accessed directly.
typedef struct _GXmlGomProperty GXmlGomProperty;
An interface for GXmlGomObject's properties translated to GXmlDomElement attributes. If object is instantiated it is written, if not is just ingnored.
struct GXmlGomPropertyIface { GTypeInterface parent_iface; gboolean (*validate_value) (GXmlGomProperty* self, const gchar* val); gchar* (*get_value) (GXmlGomProperty* self); void (*set_value) (GXmlGomProperty* self, const gchar* value); };
Interface for creating GXmlGomProperty implementations.
the parent interface structure |
||
virtual method called by |
||
getter method for the abstract property "value" |
||
setter method for the abstract property "value" |