Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/AppInfo.h
Class AppInfo. Can be used to transport additional constraints. An AppInfo can store anything, from simple text to elements.
<xsd:annotation>
<xsd:appinfo>
<sch:pattern name="Check A greater than B">
<sch:rule context="d:Demo">
<sch:assert test="d:A > d:B"
diagnostics="lessThan">
A should be greater than B.
</sch:assert>
</sch:rule>
</sch:pattern>
<sch:diagnostics>
<sch:diagnostic id="lessThan">
Error! A is less than B
A = <sch:value-of select="d:A"/>
B = <sch:value-of select="d:B"/>
</sch:diagnostic>
</sch:diagnostics>
</xsd:appinfo>
</xsd:annotation>
Direct Base Classes: AnnotationContent
All Base Classes: Poco::RefCountedObject, AnnotationContent, Visitable
Member Functions: accept
Inherited Functions: accept, duplicate, getData, id, referenceCount, release, setData, source
AppInfo(
const std::string & sourceUri
);
Creates the AppInfo.
virtual ~AppInfo();
Destroys the AppInfo.
void accept(
Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()