Parsable
Object Hierarchy:
Description:
[ CCode ( type_id = "gdata_parsable_get_type ()" ) ]
[ Version ( since = "0.3.0" ) ]
public abstract class Parsable : Object
[ Version ( since = "0.3.0" ) ]
public abstract class Parsable : Object
All the fields in the Parsable structure are private and should never be accessed directly.
All known sub-classes:
Namespace: GData
Package: libgdata
Content:
Properties:
- public bool constructed_from_xml { get; construct; }
Specifies whether the object was constructed by parsing XML or manually.
Static methods:
- public static Parsable from_json (Type parsable_type, string json, int length) throws Error
Creates a new Parsable subclass (of the given
parsable_type
) from the givenjson
. - public static Parsable from_xml (Type parsable_type, string xml, int length) throws Error
Creates a new Parsable subclass (of the given
parsable_type
) from the givenxml
.
Creation methods:
- protected Parsable ()
Methods:
- public unowned string get_content_type ()
Returns the content type upon which the Parsable is built.
- public virtual void get_json (Builder builder)
Builds a JSON representation of the Parsable in its current state, such that it could be inserted on the server.
- public virtual void get_namespaces (HashTable<void*,void*> namespaces)
- public virtual void get_xml (StringBuilder xml_string)
Builds an XML representation of the Parsable in its current state, such that it could be inserted on the server.
- public virtual bool parse_json (Reader reader) throws Error
- public virtual bool parse_xml (Doc doc, Node node) throws Error
- public virtual bool post_parse_json () throws Error
- public virtual bool post_parse_xml () throws Error
- public virtual void pre_get_xml (StringBuilder xml_string)
- public virtual bool pre_parse_xml (Doc doc, Node root_node) throws Error
Inherited Members:
All known members inherited from class GLib.Object