teal-src/util/stanza.d.tl
changeset 12778 fc4adc32a537
parent 12521 a8c17c95ef4d
equal deleted inserted replaced
12777:f100c1035576 12778:fc4adc32a537
    47 		body : function ( stanza_t, string, { string : string } ) : stanza_t
    47 		body : function ( stanza_t, string, { string : string } ) : stanza_t
    48 		text_tag : function ( stanza_t, string, string, { string : string } ) : stanza_t
    48 		text_tag : function ( stanza_t, string, string, { string : string } ) : stanza_t
    49 		tag : function ( stanza_t, string, { string : string } ) : stanza_t
    49 		tag : function ( stanza_t, string, { string : string } ) : stanza_t
    50 		text : function ( stanza_t, string ) : stanza_t
    50 		text : function ( stanza_t, string ) : stanza_t
    51 		up : function ( stanza_t ) : stanza_t
    51 		up : function ( stanza_t ) : stanza_t
       
    52 		at_top : function ( stanza_t ) : boolean
    52 		reset : function ( stanza_t ) : stanza_t
    53 		reset : function ( stanza_t ) : stanza_t
    53 		add_direct_child : function ( stanza_t, stanza_t )
    54 		add_direct_child : function ( stanza_t, stanza_t )
    54 		add_child : function ( stanza_t, stanza_t )
    55 		add_child : function ( stanza_t, stanza_t )
    55 		remove_children : function ( stanza_t, string, string ) : stanza_t
    56 		remove_children : function ( stanza_t, string, string ) : stanza_t
    56 
    57 
    57 		get_child : function ( stanza_t, string, string ) : stanza_t
    58 		get_child : function ( stanza_t, string, string ) : stanza_t
    58 		get_text : function ( stanza_t ) : string
    59 		get_text : function ( stanza_t ) : string
    59 		get_child_text : function ( stanza_t, string, string ) : string
    60 		get_child_text : function ( stanza_t, string, string ) : string
       
    61 		get_child_attr : function ( stanza_t, string, string ) : string
       
    62 		get_child_with_attr : function ( stanza_t, string, string, string, function (string) : boolean ) : string
    60 		child_with_name : function ( stanza_t, string, string ) : stanza_t
    63 		child_with_name : function ( stanza_t, string, string ) : stanza_t
    61 		child_with_ns : function ( stanza_t, string, string ) : stanza_t
    64 		child_with_ns : function ( stanza_t, string, string ) : stanza_t
    62 		children : function ( stanza_t ) : children_iter, stanza_t, integer
    65 		children : function ( stanza_t ) : children_iter, stanza_t, integer
    63 		childtags : function ( stanza_t, string, string ) : childtags_iter
    66 		childtags : function ( stanza_t, string, string ) : childtags_iter
    64 		maptags : function ( stanza_t, maptags_cb ) : stanza_t
    67 		maptags : function ( stanza_t, maptags_cb ) : stanza_t
    66 
    69 
    67 		top_tag : function ( stanza_t ) : string
    70 		top_tag : function ( stanza_t ) : string
    68 		pretty_print : function ( stanza_t ) : string
    71 		pretty_print : function ( stanza_t ) : string
    69 		pretty_top_tag : function ( stanza_t ) : string
    72 		pretty_top_tag : function ( stanza_t ) : string
    70 
    73 
       
    74 		-- FIXME Represent util.error support
    71 		get_error : function ( stanza_t ) : stanza_error_type, stanza_error_condition, string, stanza_t
    75 		get_error : function ( stanza_t ) : stanza_error_type, stanza_error_condition, string, stanza_t
       
    76 		add_error : function ( stanza_t, stanza_error_type, stanza_error_condition, string, string )
    72 		indent : function ( stanza_t, integer, string ) : stanza_t
    77 		indent : function ( stanza_t, integer, string ) : stanza_t
    73 	end
    78 	end
    74 
    79 
    75 	record serialized_stanza_t
    80 	record serialized_stanza_t
    76 		name : string
    81 		name : string