Class: SOAP::Mapping::SchemaDefinition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SchemaDefinition.



487
488
489
490
491
492
493
494
495
496
# File 'lib/soap/mapping/mapping.rb', line 487

def initialize(class_for, elename, type, qualified)
  @class_for = class_for
  @elename = elename
  @type = type
  @qualified = qualified
  @elements = []
  @attributes = nil
  @choice = false
  @any = false
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



485
486
487
# File 'lib/soap/mapping/mapping.rb', line 485

def attributes
  @attributes
end

#class_forObject (readonly)

Returns the value of attribute class_for.



482
483
484
# File 'lib/soap/mapping/mapping.rb', line 482

def class_for
  @class_for
end

#elementsObject (readonly)

Returns the value of attribute elements.



484
485
486
# File 'lib/soap/mapping/mapping.rb', line 484

def elements
  @elements
end

#elenameObject (readonly)

Returns the value of attribute elename.



483
484
485
# File 'lib/soap/mapping/mapping.rb', line 483

def elename
  @elename
end

#qualifiedObject (readonly)

Returns the value of attribute qualified.



484
485
486
# File 'lib/soap/mapping/mapping.rb', line 484

def qualified
  @qualified
end

#typeObject (readonly)

Returns the value of attribute type.



483
484
485
# File 'lib/soap/mapping/mapping.rb', line 483

def type
  @type
end

Instance Method Details

#choice?Boolean

Returns:

  • (Boolean)


498
499
500
# File 'lib/soap/mapping/mapping.rb', line 498

def choice?
  @choice
end

#have_any?Boolean

Returns:

  • (Boolean)


502
503
504
# File 'lib/soap/mapping/mapping.rb', line 502

def have_any?
  @any
end

#set_anyObject



510
511
512
# File 'lib/soap/mapping/mapping.rb', line 510

def set_any
  @any = true
end

#set_choiceObject



506
507
508
# File 'lib/soap/mapping/mapping.rb', line 506

def set_choice
  @choice = true
end