class LibXML::XML::Schema::Element
Attributes
name[R]
namespace[R]
type[R]
value[R]
Public Instance Methods
annotation()
click to toggle source
static VALUE rxml_schema_element_annot(VALUE self) { xmlSchemaElementPtr xelem; VALUE annotation = Qnil; Data_Get_Struct(self, xmlSchemaElement, xelem); if ((xelem->annot != NULL) && (xelem->annot->content != NULL)) { xmlChar *content = xmlNodeGetContent(xelem->annot->content); if (content) { annotation = rxml_new_cstr(content, NULL); xmlFree(content); } } return annotation; }
array?()
click to toggle source
# File lib/libxml/schema/element.rb 18 def array? 19 max_occurs > 1 20 end
elements()
click to toggle source
# File lib/libxml/schema/element.rb 22 def elements 23 type.elements 24 end
max_occurs()
click to toggle source
# File lib/libxml/schema/element.rb 10 def max_occurs 11 @max 12 end
min_occurs()
click to toggle source
# File lib/libxml/schema/element.rb 6 def min_occurs 7 @min 8 end
node()
click to toggle source
static VALUE rxml_schema_element_node(VALUE self) { xmlSchemaElementPtr xelem; Data_Get_Struct(self, xmlSchemaElement, xelem); return rxml_node_wrap(xelem->node); }
required?()
click to toggle source
# File lib/libxml/schema/element.rb 14 def required? 15 !min_occurs.zero? 16 end