Class: SOAP::Mapping::SchemaDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/mapping/schemadefinition.rb

Constant Summary collapse

EMPTY =
SchemaEmptyDefinition.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_for, elename, type, qualified) ⇒ SchemaDefinition

Returns a new instance of SchemaDefinition.



147
148
149
150
151
152
153
154
# File 'lib/soap/mapping/schemadefinition.rb', line 147

def initialize(class_for, elename, type, qualified)
  @class_for = class_for
  @elename = elename
  @type = type
  @qualified = qualified
  @elements = EMPTY
  @attributes = nil
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



144
145
146
# File 'lib/soap/mapping/schemadefinition.rb', line 144

def attributes
  @attributes
end

#class_forObject (readonly)

Returns the value of attribute class_for.



141
142
143
# File 'lib/soap/mapping/schemadefinition.rb', line 141

def class_for
  @class_for
end

#elementsObject

Returns the value of attribute elements.



145
146
147
# File 'lib/soap/mapping/schemadefinition.rb', line 145

def elements
  @elements
end

#elenameObject (readonly)

Returns the value of attribute elename.



142
143
144
# File 'lib/soap/mapping/schemadefinition.rb', line 142

def elename
  @elename
end

#qualifiedObject (readonly)

Returns the value of attribute qualified.



143
144
145
# File 'lib/soap/mapping/schemadefinition.rb', line 143

def qualified
  @qualified
end

#typeObject (readonly)

Returns the value of attribute type.



142
143
144
# File 'lib/soap/mapping/schemadefinition.rb', line 142

def type
  @type
end

Instance Method Details

#choice?Boolean

Returns:

  • (Boolean)


156
157
158
# File 'lib/soap/mapping/schemadefinition.rb', line 156

def choice?
  @elements.choice?
end