#include <parser/debug_validator/Debug_Attributes_Builder.h>
Inheritance diagram for ACEXML_Debug_Attributes_Builder:
Public Member Functions | |
ACEXML_Debug_Attributes_Builder () | |
virtual | ~ACEXML_Debug_Attributes_Builder () |
virtual int | setElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) |
virtual ACEXML_Attribute_Def_Builder * | getAttribute_Def_Builder () |
virtual int | insertAttribute (ACEXML_Attribute_Def_Builder *def ACEXML_ENV_ARG_DECL) |
virtual void | dump (void) |
Protected Attributes | |
ACEXML_String | element_name_ |
The name of the element type these attributes applied. | |
ACEXML_ATT_MAP | attributes_ |
Collection of attributes. |
Definition at line 122 of file Debug_Attributes_Builder.h.
|
Definition at line 151 of file Debug_Attributes_Builder.cpp.
00152 { 00153 } |
|
Definition at line 155 of file Debug_Attributes_Builder.cpp.
00156 { 00157 } |
|
Dump the content of the attribute definition. Implements ACEXML_Attributes_Def_Builder. Definition at line 196 of file Debug_Attributes_Builder.cpp. References ACEXML_ATT_MAP_ENTRY, ACEXML_ATT_MAP_ITER, ACE_Hash_Map_Iterator_Ex< ACEXML_String, ACEXML_Debug_Attribute_Builder, ACE_Hash< ACEXML_String >, ACE_Equal_To< ACEXML_String >, ACE_Null_Mutex >::advance(), ACEXML_Debug_Attribute_Builder::dump(), element_name_, ACE_Hash_Map_Entry< ACEXML_String, ACEXML_Debug_Attribute_Builder >::int_id_, and ACE_Hash_Map_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::next().
00197 { 00198 // @@ Print print. 00199 cout << "<!ATTLIST " << this->element_name_ << endl; 00200 00201 ACEXML_ATT_MAP_ITER iter (this->attributes_); 00202 ACEXML_ATT_MAP_ENTRY *item; 00203 00204 while (iter.advance () != 0) 00205 { 00206 iter.next (item); 00207 cout << "\n\t"; 00208 item->int_id_.dump (); 00209 } 00210 cout << ">" << endl; 00211 } |
|
Acquire an Attribute_Builder. Implements ACEXML_Attributes_Def_Builder. Definition at line 169 of file Debug_Attributes_Builder.cpp. References ACE_NEW_RETURN.
00170 { 00171 ACEXML_Attribute_Def_Builder *tmp; 00172 00173 ACE_NEW_RETURN (tmp, 00174 ACEXML_Debug_Attribute_Builder (), 00175 0); 00176 return tmp; 00177 } |
|
Add a definition for one attribute. Implements ACEXML_Attributes_Def_Builder. Definition at line 180 of file Debug_Attributes_Builder.cpp. References ACE_TEXT, ACEXML_String, ACEXML_THROW_RETURN, ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind(), and ACEXML_Attribute_Def_Builder::VAR.
00181 { 00182 ACEXML_Attribute_Def_Builder::VAR ptr (def); 00183 00184 if (def != 0) 00185 { 00186 ACEXML_String attname (def->getName (), 0, 0); 00187 ACEXML_Debug_Attribute_Builder *ptr = 00188 dynamic_cast<ACEXML_Debug_Attribute_Builder *> (def); 00189 this->attributes_.bind (attname, *ptr); 00190 return 0; 00191 } 00192 ACEXML_THROW_RETURN (ACEXML_SAXParseException (ACE_TEXT("ACEXML_Debug_Attributes_Builder internal error")), -1); 00193 } |
|
Set the element name that the attribute builder applies.
Implements ACEXML_Attributes_Def_Builder. Definition at line 160 of file Debug_Attributes_Builder.cpp. References ACEXML_Char, and element_name_.
00163 { 00164 this->element_name_.set (qName, 0); 00165 return 0; 00166 } |
|
Collection of attributes.
Definition at line 160 of file Debug_Attributes_Builder.h. |
|
The name of the element type these attributes applied.
Definition at line 157 of file Debug_Attributes_Builder.h. Referenced by dump(), and setElement(). |