27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/Attribute.h"
30 #include "../../xsd/AttributeGroup.h"
31 #include "../../xsd/Restriction4SimpleContent.h"
57 if(pos != std::string::npos)
67 std::set<std::string> children;
68 children.insert(
"minExclusive");
69 children.insert(
"minInclusive");
70 children.insert(
"maxExclusive");
71 children.insert(
"maxInclusive");
72 children.insert(
"totalDigits");
73 children.insert(
"fractionDigits");
74 children.insert(
"length");
75 children.insert(
"minLength");
76 children.insert(
"maxLength");
77 children.insert(
"enumeration");
78 children.insert(
"whiteSpace");
79 children.insert(
"pattern");
80 children.insert(
"attribute");
81 children.insert(
"attributeGroup");
82 children.insert(
"anyAttribute");
91 std::set<std::string>::iterator it;
95 std::string tag = *it;
97 if(tag ==
"attribute")
103 if(tag ==
"attributeGroup")
109 if(tag ==
"anyAttribute")
117 assert(pos != std::string::npos);
129 return restriction.release();
Support for Restriction on a simpleContent serialization.
TESERIALIZATIONEXPORT te::xsd::Restriction4SimpleContent * ReadRestriction4SimpleContent(te::xml::Reader &reader)
This restriction class defines restrictions on a simpleContent.
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::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 SimpleType serialization.
te::xsd::QName * CreateQName(const std::string &name)
TESERIALIZATIONEXPORT te::xsd::Attribute * ReadAttribute(te::xml::Reader &reader)
Support for AnyAttribute serialization.
Utility methods for Schema serialization.
te::xsd::FacetType GetFacetType(const std::string &name)
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.
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.