pwfengine
Public Member Functions | Protected Member Functions | Friends
PWrapperElement Class Reference

An element of a wrapper. The element is indentified by its schema. More...

#include <PWrapperElement.h>

Inheritance diagram for PWrapperElement:
PWrapperData PWrapperRequire PWrapperSearch

List of all members.

Public Member Functions

 PWrapperElement (PWrapper *wrapper, PWrapperElement *parent, PSchemaElement elementSchema)
 PWrapperElement (PWrapper *wrapper, PWrapperElement &parent, const QString &elementType, const QString &elementName)
PWrapperwrapper () const
PWrapperElementparentElement ()
PSchemaElement schema () const
QString name () const
PFindSchemaElementschemaFinder () const
PWrapperElementchildElement (const PSchemaElement &elementSchema)
PWrapperRequirechildRequire (const PSchemaElement &requireSchema)

Protected Member Functions

QString type () const

Friends

class PWrapperElementPrivate

Detailed Description

An element of a wrapper. The element is indentified by its schema.


Constructor & Destructor Documentation

PWrapperElement::PWrapperElement ( PWrapper wrapper,
PWrapperElement parent,
PSchemaElement  elementSchema 
)
Note:
a NULL parent means that this is the root element of a top level wrapper.
PWrapperElement::PWrapperElement ( PWrapper wrapper,
PWrapperElement parent,
const QString &  elementType,
const QString &  elementName 
)

Create a wrapper element without fully specifying its schema, this will be detected by having its name and type by creating a PFindSchemaElement that will starts its search from parent and that can be accessed with schemaFinder().

Parameters:
elementTypethe element type, e.g data, search, etc.
elementNamethe name of the element, e.g: foo

Member Function Documentation

PWrapperElement * PWrapperElement::childElement ( const PSchemaElement elementSchema)
Returns:
the child wrapper element with the specified schema, creating it first if not exists.
NULL if the specified schema is null.
PWrapperRequire * PWrapperElement::childRequire ( const PSchemaElement requireSchema)
Returns:
the child require with the specified schema, creating it first if not exists.
NULL if the specified schema is null.
QString PWrapperElement::name ( ) const
Returns:
the element name.
PFindSchemaElement * PWrapperElement::schemaFinder ( ) const
Returns:
the finder that is detecting the element schema or NULL if there is nothing to detect.
QString PWrapperElement::type ( ) const [protected]
Returns:
the element type, e.g. data

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator