Class: Shale::Schema::Compiler::XMLComplex Private

Inherits:
Complex
  • Object
show all
Defined in:
lib/shale/schema/compiler/xml_complex.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class representing Shale's XML complex type

Instance Attribute Summary collapse

Attributes inherited from Complex

#id, #properties, #root_name

Instance Method Summary collapse

Methods inherited from Complex

#add_property, #file_name, #modules, #name, #references, #relative_path

Constructor Details

#initialize(id, root_name, prefix, namespace, package) ⇒ XMLComplex

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object

Parameters:



42
43
44
45
46
47
# File 'lib/shale/schema/compiler/xml_complex.rb', line 42

def initialize(id, root_name, prefix, namespace, package)
  super(id, root_name, package)
  @root = root_name
  @prefix = prefix
  @namespace = namespace
end

Instance Attribute Details

#namespaceString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return namespace URI

Returns:



31
32
33
# File 'lib/shale/schema/compiler/xml_complex.rb', line 31

def namespace
  @namespace
end

#prefixString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return namespace prefix

Returns:



24
25
26
# File 'lib/shale/schema/compiler/xml_complex.rb', line 24

def prefix
  @prefix
end

#rootString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Accessor for root attribute

Returns:



17
18
19
# File 'lib/shale/schema/compiler/xml_complex.rb', line 17

def root
  @root
end