MidgardValidable

MidgardValidable

Synopsis

                    MidgardValidable;
void                midgard_validable_validate          (MidgardValidable *self,
                                                         GError **error);
gboolean            midgard_validable_is_valid          (MidgardValidable *self);

Object Hierarchy

  GInterface
   +----MidgardValidable

Prerequisites

MidgardValidable requires GObject.

Known Derived Interfaces

MidgardValidable is required by MidgardContentManagerJob.

Known Implementations

MidgardValidable is implemented by MidgardQueryConstraint, MidgardQueryConstraintGroup, MidgardQueryProperty, MidgardQuerySelect, MidgardQueryStorage, MidgardSqlContentManagerJob, MidgardSqlContentManagerJobCreate, MidgardSqlContentManagerJobDelete, MidgardSqlContentManagerJobLoad, MidgardSqlContentManagerJobPurge, MidgardSqlContentManagerJobUpdate, MidgardSqlQueryConstraint and MidgardSqlQuerySelectData.

Description

Details

MidgardValidable

typedef struct _MidgardValidable MidgardValidable;


midgard_validable_validate ()

void                midgard_validable_validate          (MidgardValidable *self,
                                                         GError **error);

Validate given instance. Implementation shall validate given instance, and in case when it's invalid, particular error shoudl be set. If instance is valid, error should be NULL.

self :

MidgardValidable instance error (error-domains MIDGARD_VALIDATION_ERROR): location to store error

Since 10.05.5


midgard_validable_is_valid ()

gboolean            midgard_validable_is_valid          (MidgardValidable *self);

Check if given MidgardValidable instance is marked as valid. Implementation shall not validate given instance.

self :

MidgardValidable instance

Returns :

TRUE if it's valid, FALSE otherwise

Since 10.05.5