class LibXML::XML::Schema::Element
Public Instance Methods
annotation()
click to toggle source
static VALUE rxml_schema_element_annot(VALUE self) { return rb_iv_get(self, "@annotation"); }
array?()
click to toggle source
# File lib/libxml/schema/element.rb, line 9 def array? max_occurs > 1 end
elements()
click to toggle source
# File lib/libxml/schema/element.rb, line 13 def elements type.elements end
max_occurs()
click to toggle source
static VALUE rxml_schema_element_max_occurs(VALUE self) { return rb_iv_get(self, "@max"); }
min_occurs()
click to toggle source
static VALUE rxml_schema_element_min_occurs(VALUE self) { return rb_iv_get(self, "@min"); }
name()
click to toggle source
static VALUE rxml_schema_element_name(VALUE self) { xmlSchemaElementPtr xelem; Data_Get_Struct(self, xmlSchemaElement, xelem); QNIL_OR_STRING(xelem->name) }
namespace()
click to toggle source
static VALUE rxml_schema_element_namespace(VALUE self) { xmlSchemaElementPtr xelem; Data_Get_Struct(self, xmlSchemaElement, xelem); QNIL_OR_STRING(xelem->targetNamespace) }
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, line 5 def required? !min_occurs.zero? end
type()
click to toggle source
static VALUE rxml_schema_element_type(VALUE self) { xmlSchemaElementPtr xelem; xmlSchemaTypePtr xtype; Data_Get_Struct(self, xmlSchemaElement, xelem); xtype = xelem->subtypes; return rxml_wrap_schema_type((xmlSchemaTypePtr) xtype); }
value()
click to toggle source
static VALUE rxml_schema_element_value(VALUE self) { xmlSchemaElementPtr xelem; Data_Get_Struct(self, xmlSchemaElement, xelem); QNIL_OR_STRING(xelem->value) }