Module: SOAP::SOAPType

Included in:
SOAPBasetype, SOAPCompoundtype
Defined in:
lib/soap/baseData.rb

Overview

for SOAP type(base and compound)

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) definedtype

Returns the value of attribute definedtype



50
51
52
# File 'lib/soap/baseData.rb', line 50

def definedtype
  @definedtype
end

- (Object) elename

Returns the value of attribute elename



43
44
45
# File 'lib/soap/baseData.rb', line 43

def elename
  @elename
end

- (Object) encodingstyle

Returns the value of attribute encodingstyle



42
43
44
# File 'lib/soap/baseData.rb', line 42

def encodingstyle
  @encodingstyle
end

- (Object) extraattr (readonly)

Returns the value of attribute extraattr



49
50
51
# File 'lib/soap/baseData.rb', line 49

def extraattr
  @extraattr
end

- (Object) force_typed

Returns the value of attribute force_typed



51
52
53
# File 'lib/soap/baseData.rb', line 51

def force_typed
  @force_typed
end

- (Object) id

Returns the value of attribute id



44
45
46
# File 'lib/soap/baseData.rb', line 44

def id
  @id
end

- (Object) parent

Returns the value of attribute parent



47
48
49
# File 'lib/soap/baseData.rb', line 47

def parent
  @parent
end

- (Object) position

Returns the value of attribute position



48
49
50
# File 'lib/soap/baseData.rb', line 48

def position
  @position
end

- (Object) precedents (readonly)

Returns the value of attribute precedents



45
46
47
# File 'lib/soap/baseData.rb', line 45

def precedents
  @precedents
end

- (Object) root

Returns the value of attribute root



46
47
48
# File 'lib/soap/baseData.rb', line 46

def root
  @root
end

Instance Method Details

- (Object) initialize(*arg)



53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/soap/baseData.rb', line 53

def initialize(*arg)
  super
  @encodingstyle = nil
  @elename = XSD::QName::EMPTY
  @id = nil
  @precedents = []
  @root = false
  @parent = nil
  @position = nil
  @definedtype = nil
  @extraattr = {}
  @force_typed = false
end

- (Object) inspect



67
68
69
70
71
72
73
# File 'lib/soap/baseData.rb', line 67

def inspect
  if self.is_a?(XSD::NSDBase)
    sprintf("#<%s:0x%x %s %s>", self.class.name, __id__, self.elename, self.type)
  else
    sprintf("#<%s:0x%x %s>", self.class.name, __id__, self.elename)
  end
end

- (Object) rootnode



75
76
77
78
79
80
81
# File 'lib/soap/baseData.rb', line 75

def rootnode
  node = self
  while node = node.parent
    break if SOAPEnvelope === node
  end
  node
end