#include <cxxtools/xml/entityresolver.h>
Public Member Functions | |
| EntityResolver () | |
| Constructs a new Resolver object and initializes the entity list using the XML default entities. | |
| virtual | ~EntityResolver () |
| Empty destructor. | |
| void | clear () |
| Resets the entity list to the XML default entities. | |
| void | addEntity (const String &entity, const String &token) |
| Adds the given entity and the given resolved entity value (token) to the entity list. | |
| String | resolveEntity (const String &entity) |
| Returns the resolved entity value (token) for the given entity. | |
| EntityResolver | ( | ) |
The constructor calls clear() which clears the entity list and adds the XML default entities.
| void clear | ( | ) |
The default entities are < > & ' "
To determine the resolved entity value of a entity the method resolveEntity() can be used.
| entity | A list entry for this entity is created and associated with the also given token. | |
| token | The resolved entity value that is associated with the also given entity. |
If the entity is not in the list an empty String is returned.
| entity | The resolved entity value for this entity is returned. |