27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/ComplexType.h"
30 #include "../../xsd/Redefine.h"
31 #include "../../xsd/SimpleType.h"
58 if(pos != std::string::npos)
59 redefine->setSchemaLocation(reader.
getAttr(pos));
65 std::set<std::string> children;
66 children.insert(
"annotation");
67 children.insert(
"simpleType");
68 children.insert(
"complexType");
69 children.insert(
"group");
70 children.insert(
"attributeGroup");
72 std::set<std::string>::iterator it;
76 std::string tag = *it;
77 if(tag ==
"annotation")
83 if(tag ==
"simpleType")
89 if(tag ==
"complexType")
101 if(tag ==
"attributeGroup")
108 return redefine.release();
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)
TESERIALIZATIONEXPORT te::xsd::Group * ReadGroup(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)
It models a XML Schema redefine.
Support for Annotation serialization.
TESERIALIZATIONEXPORT te::xsd::Redefine * ReadRedefine(te::xml::Reader &reader)
Support for SimpleType serialization.
TESERIALIZATIONEXPORT te::xsd::ComplexType * ReadComplexType(te::xml::Reader &reader)
Utility methods for Schema serialization.
Support for ComplexType 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.
TESERIALIZATIONEXPORT te::xsd::SimpleType * ReadSimpleType(te::xml::Reader &reader)
virtual std::size_t getAttrPosition(const std::string &name) const =0
It returns the attribute position.
Support for Redefine serialization.
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.