27 #include "../../xml/Reader.h"
28 #include "../../xml/Writer.h"
29 #include "../../xsd/SimpleTypeConstructor.h"
30 #include "../../xsd/Restriction4SimpleType.h"
53 if(pos != std::string::npos)
61 std::set<std::string> children;
62 children.insert(
"minExclusive");
63 children.insert(
"minInclusive");
64 children.insert(
"maxExclusive");
65 children.insert(
"maxInclusive");
66 children.insert(
"totalDigits");
67 children.insert(
"fractionDigits");
68 children.insert(
"length");
69 children.insert(
"minLength");
70 children.insert(
"maxLength");
71 children.insert(
"enumeration");
72 children.insert(
"whiteSpace");
73 children.insert(
"pattern");
82 std::set<std::string>::iterator it;
88 assert(pos != std::string::npos);
100 return restriction.release();
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 void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
Support for SimpleType serialization.
te::xsd::QName * CreateQName(const std::string &name)
TESERIALIZATIONEXPORT te::xsd::Restriction4SimpleType * ReadRestriction4SimpleType(te::xml::Reader &reader)
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.
The restriction element defines restrictions on a simpleType definition.
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)
Support for Restriction on a simpleType serialization.
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.