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, anonymous, qualified) ⇒ SchemaDefinition

Returns a new instance of SchemaDefinition.



149
150
151
152
153
154
155
156
157
158
# File 'lib/soap/mapping/schemadefinition.rb', line 149

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

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#basetypeObject

Returns the value of attribute basetype.



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

def basetype
  @basetype
end

#class_forObject (readonly)

Returns the value of attribute class_for.



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

def class_for
  @class_for
end

#elementsObject

Returns the value of attribute elements.



147
148
149
# File 'lib/soap/mapping/schemadefinition.rb', line 147

def elements
  @elements
end

#elenameObject (readonly)

Returns the value of attribute elename.



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

def elename
  @elename
end

#qualifiedObject (readonly)

Returns the value of attribute qualified.



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

def qualified
  @qualified
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#choice?Boolean

Returns:

  • (Boolean)


164
165
166
# File 'lib/soap/mapping/schemadefinition.rb', line 164

def choice?
  @elements.choice?
end

#is_anonymous?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/soap/mapping/schemadefinition.rb', line 160

def is_anonymous?
  @anonymous
end