In Files

  • wsdl/xmlSchema/simpleType.rb

Class/Module Index [+]

Quicksearch

WSDL::XMLSchema::SimpleType

Attributes

name[RW]
restriction[R]

Public Class Methods

new(name = nil) click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 37
def initialize(name = nil)
  super()
  @name = name
  @restriction = nil
end
            

Public Instance Methods

base() click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 29
def base
  if @restriction
    @restriction.base
  else
    raise ArgumentError.new("incomplete simpleType")
  end
end
            
check_lexical_format(value) click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 21
def check_lexical_format(value)
  if @restriction
    check_restriction(value)
  else
    raise ArgumentError.new("incomplete simpleType")
  end
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 55
def parse_attr(attr, value)
  case attr
  when NameAttrName
    @name = XSD::QName.new(targetnamespace, value.source)
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 47
def parse_element(element)
  case element
  when RestrictionName
    @restriction = SimpleRestriction.new
    @restriction
  end
end
            
targetnamespace() click to toggle source
 
               # File wsdl/xmlSchema/simpleType.rb, line 43
def targetnamespace
  parent.targetnamespace
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus