29#define UNBOUNDED INT_MAX
33 Element(
const std::string & name,
34 const std::string & elemNs,
35 const std::string & typeNs,
39 bool qualified =
false,
41 std::string fixed =
"");
45 std::string getName()
const;
46 void setTypeNamespace(
const std::string & ns);
47 std::string getTypeNamespace()
const;
48 void setNamespace(
const std::string &ns);
49 std::string getNamespace()
const;
53 std::string & defaultVal();
54 std::string & fixedVal();
55 bool isQualified()
const;
67 std::string dval, fval;
70 int minOccurs, maxOccurs;
71 std::string elemNamespace;
72 std::string typeNamespace;
83 const std::string & elemNs,
84 const std::string & typeNs,
96 bQualified(qualified),
99 elemNamespace(elemNs),
100 typeNamespace(typeNs),
141 return typeNamespace;
190 elemName = e.elemName;
191 elemType = e.elemType;
195 typeNamespace = e.typeNamespace;
241 return elemNamespace;
void setNamespace(const std::string &ns)
const std::list< std::string > & getConstraints()
std::string & defaultVal()
void addConstraint(Constraint *c)
std::string getName() const
std::string getTypeNamespace() const
Element & operator=(const Element &e)
std::string getNamespace() const
Constraint * constraint()
void setTypeNamespace(const std::string &ns)
std::ostream & operator<<(std::ostream &os, TypeContainer &tc)