#include <Li.h>
Inheritance diagram for Li:
Public Member Functions | |
virtual StringPimpl | getAimlPattern () const throw (InternalProgrammerErrorException &) |
Returns the string set from the "value" attribute sent to Li::setAttribute(). | |
virtual StringPimpl | getPredicateName () const throw (InternalProgrammerErrorException &) |
Returns the string set from the "name" attribute sent to Li::setAttribute(). | |
virtual bool | isDefaultListItem () const throw (InternalProgrammerErrorException &) |
Returns true if this is a default list item or not. | |
virtual bool | isNameAndValueListItem () const throw (InternalProgrammerErrorException &) |
Returns true if this is a name and value list item. | |
virtual bool | isValueOnlyListItem () const throw (InternalProgrammerErrorException &) |
Returns true if this is a value only list item. | |
Li () throw (InternalProgrammerErrorException &) | |
Default constructor to initalize the private implementation (m_pimpl) data. | |
virtual void | setAttribute (const StringPimpl &name, const StringPimpl &value) throw (InternalProgrammerErrorException &) |
Sets its attribute of "name" and "value". | |
virtual | ~Li () |
Default virtual destructor. | |
Private Attributes | |
shared_ptr< LiImpl > | m_pimpl |
The private implementation in which you cannot get access to. |
Every time a XML Tag of AIML is encountered, an instance of this class will be created. All text inbetween the begin and end tag, all attributes, and all inner Tags will go through methods of this class.
|
Default constructor to initalize the private implementation (m_pimpl) data.
|
|
Default virtual destructor. Destroys the private implementation (m_pimpl) data. |
|
Returns the string set from the "value" attribute sent to Li::setAttribute().
|
|
Returns the string set from the "name" attribute sent to Li::setAttribute().
|
|
Returns true if this is a default list item or not. An li element of the type defaultListItem has no attributes. It may contain any AIML template elements. In other words if the li does not have a "value" attribute or a "name" attribute it is a default list item.
|
|
Returns true if this is a name and value list item. An li element of the type nameValueListItem has a required attribute name, which specifies an AIML predicate, and a required attribute value, which contains a simple pattern expression. The element may contain any AIML template elements.
|
|
Returns true if this is a value only list item. An li element of the type valueOnlyListItem has a required attribute value, which must contain a simple pattern expression. The element may contain any AIML template elements.
|
|
Sets its attribute of "name" and "value".
Reimplemented from Tag. |
|
The private implementation in which you cannot get access to. This shared_ptr holds the private methods and private member variables of this class. This makes ABI (Application Binary Interface) more resilient to change. See the private implementation idiom on the internet for more information about this. Reimplemented from InnerTemplateListImpl. |