An explicity shared element of a schema.
More...
#include <PSchemaElement.h>
List of all members.
Detailed Description
An explicity shared element of a schema.
Member Function Documentation
| QString PSchemaElement::attribute |
( |
const QString & |
attributeName | ) |
const |
- Returns:
- the attribute of the element
| PSchemaElement PSchemaElement::directChild |
( |
const QString & |
elementType, |
|
|
const QString & |
elementName = "" |
|
) |
| const |
- Returns:
- the specified direct child of this element, a null element if not exists.
- Parameters:
-
| elementType | the element type, e.g. search or data |
| elementName | the element name, e.g foo |
| QString PSchemaElement::name |
( |
| ) |
const |
- Returns:
- the name of the schema element, i.e. the value of the attribute "name".
Reimplemented in PSchema.
| QDomElement PSchemaElement::schemaElement |
( |
| ) |
const [protected] |
Each PSchemaElement has an unique ID setted when the schema is created. The id can be used as an index for storing data about the schema element in other classes.
| bool PSchemaElement::setSchemaElement |
( |
const QDomElement & |
schemaElement | ) |
|
Set the schema element and check its validity.
| QString PSchemaElement::type |
( |
| ) |
const |
- Returns:
- the type of the schema element, e.g. data, search, etc.
Example: an element <foo>...</foo> will return foo
The documentation for this class was generated from the following files: