27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/All.h"
30 #include "../../xsd/Attribute.h"
31 #include "../../xsd/AttributeGroup.h"
32 #include "../../xsd/Choice.h"
33 #include "../../xsd/Extension.h"
34 #include "../../xsd/Group.h"
35 #include "../../xsd/Sequence.h"
64 if(pos != std::string::npos)
75 std::set<std::string> children;
76 children.insert(
"group");
77 children.insert(
"all");
78 children.insert(
"choice");
79 children.insert(
"sequence");
80 children.insert(
"attribute");
81 children.insert(
"attributeGroup");
82 children.insert(
"anyAttribute");
84 std::set<std::string>::iterator it;
88 std::string tag = *it;
97 extension->setContent(
ReadAll(reader));
107 if(tag ==
"sequence")
113 if(tag ==
"attribute")
119 if(tag ==
"attributeGroup")
125 if(tag ==
"anyAttribute")
132 return extension.release();
TESERIALIZATIONEXPORT te::xsd::Sequence * ReadSequence(te::xml::Reader &reader)
This class models a XML reader object.
virtual bool next()=0
It gets the next event to be read.
void ReadAnnotated(te::xsd::Annotated *annotated, te::xml::Reader &reader)
TESERIALIZATIONEXPORT te::xsd::Choice * ReadChoice(te::xml::Reader &reader)
TESERIALIZATIONEXPORT te::xsd::Group * ReadGroup(te::xml::Reader &reader)
TESERIALIZATIONEXPORT te::xsd::AnyAttribute * ReadAnyAttribute(te::xml::Reader &reader)
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
Support for Attribute serialization.
This class models an extension element that can be used to extend an existing simpleType or complexTy...
te::xsd::QName * CreateQName(const std::string &name)
TESERIALIZATIONEXPORT te::xsd::Attribute * ReadAttribute(te::xml::Reader &reader)
Support for Extension serialization.
Support for Choice serialization.
Support for AnyAttribute serialization.
TESERIALIZATIONEXPORT te::xsd::Extension * ReadExtension(te::xml::Reader &reader)
Support for All serialization.
Utility methods for Schema serialization.
TESERIALIZATIONEXPORT te::xsd::All * ReadAll(te::xml::Reader &reader)
Support for Sequence serialization.
virtual NodeType getNodeType() const =0
It return the type of node read.
TESERIALIZATIONEXPORT te::xsd::AttributeGroup * ReadAttributeGroup(te::xml::Reader &reader)
Support for AttributeGroup serialization.
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.
Support for Group serialization.
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.