Library: XSD/Parser
Package: XSDParser
Header: Poco/XSD/Parser/Utility.h
Utility class, used to extract attribute values.
Member Functions: getAnyAttrProcessStyle, getAnyProcessStyle, getAttrUsage, getBlock, getBool, getFinal, getFinalDefault, getMaxOccurs, getMinOccurs, getQualified, getSimpleTypeFinal, getString
~Utility();
static Poco::XSD::Types::AnyAttribute::ProcessStyle getAnyAttrProcessStyle(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr
);
static Poco::XSD::Types::Any::ProcessStyle getAnyProcessStyle(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr
);
static Poco::XSD::Types::AbstractAttribute::Usage getAttrUsage(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
Poco::XSD::Types::AbstractAttribute::Usage def
);
static void getBlock(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool & blockRestriction,
bool & blockExtension,
bool & blockSubstitution
);
if itAttr == itEnd, blockRestriction and blockExtension and blockSubstitution will not be changed!
static bool getBool(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool defaultValue
);
static void getFinal(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool & finalRestriction,
bool & finalExtension
);
if itAttr == itEnd, finalRestriction and finalExtension will not be changed!
static void getFinalDefault(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool & finalRestriction,
bool & finalExtension,
bool & finalList,
bool & finalUnion
);
static Poco::UInt32 getMaxOccurs(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr
);
static Poco::UInt32 getMinOccurs(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr
);
static bool getQualified(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool defaultValue
);
static void getSimpleTypeFinal(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
bool & finalRestriction,
bool & finalList,
bool & finalUnion
);
if itAttr == itEnd, finalRestriction, finalUnion and finalList will not be changed!
static const std::string & getString(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr,
const std::string & defaultValue
);
For optional string attributes
static const std::string & getString(
const CompactAttributes::const_iterator & itEnd,
const CompactAttributes::const_iterator & itAttr
);
For mandatory attributes