GData.ParsableClass

Fields

Name

Type

Access

Description

element_name

str

r

the name of the XML element which represents this parsable

element_namespace

str

r

the prefix of the XML namespace used for the parsable

get_content_type

object

r

a function which returns content type upon which is GData.Parsable built

get_json

object

r

a function to build a JSON representation of the GData.Parsable in its current state, appending it to the provided Json.Builder

get_namespaces

object

r

a function to return a string containing the namespace declarations used by the parsable when represented in XML form

get_xml

object

r

a function to build an XML representation of the GData.Parsable in its current state, appending it to the provided GLib.String

parent

GObject.ObjectClass

r

the parent class

parse_json

object

r

a function to parse a JSON representation of the GData.Parsable to set the properties of the parsable

parse_xml

object

r

a function to parse an XML representation of the GData.Parsable to set the properties of the parsable

post_parse_json

object

r

a function called after parsing a JSON object, to allow the parsable to validate the parsed properties

post_parse_xml

object

r

a function called after parsing an XML tree, to allow the parsable to validate the parsed properties

pre_get_xml

object

r

a function called before building the XML representation of the children of the GData.Parsable, which allows attributes of the root XML node to be added to xml_string

pre_parse_xml

object

r

a function called before parsing of an XML tree is started, which allows properties from the root node to be extracted and used in parsable

Methods

None

Details

class GData.ParsableClass

The class structure for the GData.Parsable class. Note that JSON and XML functions are mutually exclusive: a given implementation of GData.Parsable is represented as exactly one of JSON and XML.

New in version 0.3.0.