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.



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

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.



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

def attributes
  @attributes
end

#basetypeObject

Returns the value of attribute basetype.



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

def basetype
  @basetype
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.



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

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)


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

def choice?
  @elements.choice?
end

#is_anonymous?Boolean

Returns:

  • (Boolean)


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

def is_anonymous?
  @anonymous
end