Search

Chapter 3. Writing Server-Side Plug-ins: Procedures

download PDF

3.1. Tip: Checking XSD Annotations

There are a number of XSD files that provide elements for server-side plug-ins: rhq-configuration.xsd, rhq-serverplugin.xsd, and type-specific files like rhq-serverplugin-alert.xsd.
Different properties and attributes are defined in these schema files. They are annotated so you can see what the existing, default schema makes available.
For example, for the <control> element:
	<xs:element name="control" type="serverplugin:ControlType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        Defines operations a user can invoke on the plugin component.
                        Typically, a user interface will allow a user to invoke these operations to
                        control the server plugin component during runtime. 
                    </xs:documentation>
                </xs:annotation>
	</xs:element>
Read through the annotations in the XSD files to help plan what your plug-in will do and determine whether your configuration requires custom schema.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.