File Information
Library: XSD/Types
Package: XSDTypes
Header: Poco/XSD/Types/AppInfo.h
Description
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>
Inheritance
Direct Base Classes: AnnotationContent
All Base Classes: Poco::RefCountedObject, AnnotationContent, Visitable
Member Summary
Member Functions: accept
Inherited Functions: accept, duplicate, getData, id, referenceCount, release, setData, source
Constructors
AppInfo
AppInfo(
    const std::string & sourceUri
);
Creates the AppInfo.
Destructor
~AppInfo 
 
virtual ~AppInfo();
Destroys the AppInfo.
Member Functions
accept 
 
void accept(
    Visitor & v
) const;
See also: Poco::XSD::Types::Visitable::accept()