Lines Matching refs:attributes
99 const string& element_name, const XmlAttributeMap& attributes) { in OnOpenElement() argument
109 GetElementAttribute(attributes, element_path_, kNameAttribute, &name); in OnOpenElement()
115 string interface_name = GetValidatedElementName(attributes, element_path_); in OnOpenElement()
126 Interface::Method(GetValidatedElementName(attributes, element_path_))); in OnOpenElement()
131 Interface::Signal(GetValidatedElementName(attributes, element_path_))); in OnOpenElement()
135 interfaces_.back().properties.push_back(ParseProperty(attributes, in OnOpenElement()
139 AddMethodArgument(attributes); in OnOpenElement()
141 AddSignalArgument(attributes); in OnOpenElement()
147 string name = GetValidatedElementAttribute(attributes, element_path_, in OnOpenElement()
151 GetElementAttribute(attributes, element_path_, kValueAttribute, &value); in OnOpenElement()
219 void XmlInterfaceParser::AddMethodArgument(const XmlAttributeMap& attributes) { in AddMethodArgument() argument
224 attributes, path, kDirectionAttribute, &argument_direction); in AddMethodArgument()
234 argument_list->push_back(ParseArgument(attributes, element_path_)); in AddMethodArgument()
237 void XmlInterfaceParser::AddSignalArgument(const XmlAttributeMap& attributes) { in AddSignalArgument() argument
239 ParseArgument(attributes, element_path_)); in AddSignalArgument()
255 const XmlAttributeMap& attributes, in GetElementAttribute() argument
259 if (attributes.find(element_key) == attributes.end()) { in GetElementAttribute()
262 *element_value = attributes.find(element_key)->second; in GetElementAttribute()
270 const XmlAttributeMap& attributes, in GetValidatedElementAttribute() argument
274 CHECK(GetElementAttribute(attributes, in GetValidatedElementAttribute()
287 const XmlAttributeMap& attributes, in GetValidatedElementName() argument
289 return GetValidatedElementAttribute(attributes, element_path, kNameAttribute); in GetValidatedElementName()
294 const XmlAttributeMap& attributes, const vector<string>& element_path) { in ParseArgument() argument
299 GetElementAttribute(attributes, path, kNameAttribute, &argument_name); in ParseArgument()
302 attributes, path, kTypeAttribute); in ParseArgument()
308 const XmlAttributeMap& attributes, in ParseProperty() argument
312 string property_name = GetValidatedElementName(attributes, path); in ParseProperty()
313 string property_type = GetValidatedElementAttribute(attributes, path, in ParseProperty()
315 string property_access = GetValidatedElementAttribute(attributes, path, in ParseProperty()
324 XmlAttributeMap attributes; in HandleElementStart() local
329 attributes.insert(std::make_pair(key, value)); in HandleElementStart()
333 parser->OnOpenElement(element, attributes); in HandleElementStart()