class Aws::Xml::Parser::Frame
def child_frame(xml_name)
def child_frame(xml_name) NullFrame.new(self) end
def consume_child_frame(child); end
def consume_child_frame(child); end
def frame_class(shape)
def frame_class(shape) @classes ||= { 'blob' => BlobFrame, 'boolean' => BooleanFrame, 'byte' => BlobFrame, 'character' => StringFrame, 'double' => FloatFrame, 'float' => FloatFrame, 'integer' => IntegerFrame, 'list' => ListFrame, 'list:flat' => FlatListFrame, 'long' => IntegerFrame, 'map' => MapFrame, 'map:flat' => MapEntryFrame, 'string' => StringFrame, 'structure' => StructureFrame, 'timestamp' => TimestampFrame, } if shape type = shape.type type += ':flat' if shape.definition['flattened'] @classes[type] else NullFrame end end
def initialize(parent, shape, result = nil)
def initialize(parent, shape, result = nil) @parent = parent @shape = shape @result = result @text = [] end
def new(parent, shape, result = nil)
def new(parent, shape, result = nil) if self == Frame frame = frame_class(shape).allocate frame.send(:initialize, parent, shape, result) frame else super end end
def set_text(value)
def set_text(value) @text << value end