zorba::Annotation

#include <zorba/annotation.h>

Inherited from: zorba::SmartObject

Public Functions

void

addReference() const

void

free()

Item

getLiteral(unsigned int i) const =0

Returns the requested literal.

unsigned int

getLiteralsCount() const =0

Returns the number of literals that are associated with the annotation, e.g.

Item

getQName() const =0

Returns the QName of the annotation.

long

getRefCount() const

void

removeReference()

~Annotation()

Destructor.

Protected Attributes

unsigned int

theRefCount

Public Functions

addReference

void addReference() const

free

void free()

getLiteral

Item getLiteral(unsigned int i) const =0

Returns the requested literal.

E.g. for the annotationannotation(Literal1, Literal2, ..., LiteralN)the function will return the i-th literal.

getLiteralsCount

unsigned int getLiteralsCount() const =0

Returns the number of literals that are associated with the annotation, e.g.

for the annotation:annotation(Literal1, Literal2, ..., LiteralN)the function will return N.

getQName

Item getQName() const =0

Returns the QName of the annotation.

getRefCount

long getRefCount() const

removeReference

void removeReference()

~Annotation

 ~Annotation()

Destructor.

Protected Attributes

theRefCount

unsigned int theRefCount