Module: XSD::Named

Included in:
Attribute, AttributeGroup, ComplexType, Element, Group, SimpleType
Defined in:
lib/xsd/shared/named.rb

Instance Method Summary collapse

Instance Method Details

#absolute_nameObject

Get absolute definition name

Returns:

  • String



13
14
15
# File 'lib/xsd/shared/named.rb', line 13

def absolute_name
  name ? "{#{namespace}}#{name}" : nil
end

#namespaceObject

Get definition namespace

Returns:

  • String



7
8
9
# File 'lib/xsd/shared/named.rb', line 7

def namespace
  @namespace ||= (is_a?(Referenced) && referenced? ? reference.schema : schema).target_namespace
end