27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/Annotation.h"
30 #include "../../xsd/AppInfo.h"
31 #include "../../xsd/Documentation.h"
64 if(pos != std::string::npos)
73 annotation->add(appinfo);
83 if(tag ==
"documentation")
90 if(pos != std::string::npos)
95 if(pos != std::string::npos)
104 annotation->add(doc);
116 return annotation.release();
void setSource(std::string *source)
It sets the URI reference that specifies the source of the information.
void setLang(std::string *lang)
It sets the language of the information.
This class models a XML reader object.
virtual bool next()=0
It gets the next event to be read.
TESERIALIZATIONEXPORT te::xsd::Annotation * ReadAnnotation(te::xml::Reader &reader)
A class that models a documentation element used to enter text comments in annotations.
virtual std::string getElementValue() const =0
It returns the element data value in the case of VALUE node.
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
This class models an object that specifies information to be used by applications.
void setValue(std::string *value)
It sets the information to be used by the application.
A class that models a XSD annotation element.
void setValue(std::string *doc)
It sets the information associated to the annotation.
Support for Annotation serialization.
void setSource(std::string *source)
It sets the URI that specifies the source of the information.
Utility methods for Schema serialization.
virtual NodeType getNodeType() const =0
It return the type of node read.
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
virtual std::size_t getAttrPosition(const std::string &name) const =0
It returns the attribute position.
virtual std::string getAttr(const std::string &name) const =0
It returns the attribute value in the case of an element node with valid attributes.
This class models a XML writer object.