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/Group.h"
34 #include "../../xsd/Restriction4ComplexContent.h"
35 #include "../../xsd/Sequence.h"
64 if(pos != std::string::npos)
72 std::set<std::string> children;
73 children.insert(
"group");
74 children.insert(
"all");
75 children.insert(
"choice");
76 children.insert(
"sequence");
77 children.insert(
"attribute");
78 children.insert(
"attributeGroup");
79 children.insert(
"anyAttribute");
84 std::set<std::string>::iterator it;
88 std::string tag = *it;
92 restriction->setContent(
ReadGroup(reader));
98 restriction->setContent(
ReadAll(reader));
108 if(tag ==
"sequence")
114 if(tag ==
"attribute")
120 if(tag ==
"attributeGroup")
126 if(tag ==
"anyAttribute")
133 return restriction.release();
TESERIALIZATIONEXPORT te::xsd::Restriction4ComplexContent * ReadRestriction4ComplexContent(te::xml::Reader &reader)
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.
Support for Restriction on a complexContent serialization.
te::xsd::QName * CreateQName(const std::string &name)
TESERIALIZATIONEXPORT te::xsd::Attribute * ReadAttribute(te::xml::Reader &reader)
Support for Choice serialization.
Support for AnyAttribute serialization.
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.
The restriction class can be used to define restrictions on a complexContent.
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.