Class: XSD::Keyref

Inherits:
BaseObject show all
Defined in:
lib/xsd/objects/keyref.rb

Overview

The unique element defines that an element or an attribute value must be unique within the scope. Parent elements: element www.w3schools.com/xml/el_unique.asp

Constant Summary

Constants inherited from BaseObject

BaseObject::NO_ATTRIBUTES_CONTAINER, BaseObject::NO_ELEMENTS_CONTAINER, BaseObject::XML_SCHEMA

Instance Attribute Summary collapse

Attributes inherited from BaseObject

#id, #options

Method Summary

Methods inherited from BaseObject

#[], #collect_attributes, #collect_elements, #documentation, #documentation_for, #get_prefix, #initialize, #inspect, #map_child, #map_children, #namespaces, #node, #node_to_object, #nodes, #object_by_name, #parent, #reader, #schema, #schemas_for_namespace, #strip_prefix

Constructor Details

This class inherits a constructor from XSD::BaseObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XSD::BaseObject

Instance Attribute Details

#fieldsObject

Get nested field objects



31
# File 'lib/xsd/objects/keyref.rb', line 31

child :fields, [:field]

#nameObject

The name of the keyref element. The name must be a no-colon-name (NCName) as defined in the XML Namespaces specification. The name must be unique within an identity constraint set. Required.

Returns:

  • String



13
# File 'lib/xsd/objects/keyref.rb', line 13

property :name, :string, required: true

#referObject

The name of a key or unique element defined in this schema (or another schema indicated by the specified namespace). The refer value must be a qualified name (QName). The type can include a namespace prefix. Required.

Returns:

  • String



21
# File 'lib/xsd/objects/keyref.rb', line 21

property :refer, :string, required: true

#selectorObject

Get nested selector object

Returns:

  • Selector



26
# File 'lib/xsd/objects/keyref.rb', line 26

child :selector, :selector