awips2/ncep/gov.noaa.nws.ncep.viz.resources/schema/nc_rsc_attr.exsd
Steve Harris 11f96dbedd 12.7.1-8 baseline
Former-commit-id: c42ae0fa39 [formerly 46767a18a0d6e1f2182720c8a04c6e1e59cb18a1]
Former-commit-id: 16bf591a33
2012-07-19 16:20:40 -05:00

158 lines
4.9 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="gov.noaa.nws.ncep.resources" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="gov.noaa.nws.ncep.resources" id="NC-Resource" name="NC-Resource"/>
</appinfo>
<documentation>
Extension point for Resources used by Natl Cntrs
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="nc-resourceParameter"/>
</choice>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="nc-resourceParameter">
<complexType>
<attribute name="ncResourceName" type="string" use="required">
<annotation>
<documentation>
the name of the resource in the nc-resource ext point
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn=":gov.noaa.nws.ncep.viz.resources.INatlCntrsResourceData"/>
</appinfo>
</annotation>
</attribute>
<attribute name="paramName" type="string" use="required">
<annotation>
<documentation>
used to access a member variable of the resource data
</documentation>
</annotation>
</attribute>
<attribute name="paramClass" type="string" use="required">
<annotation>
<documentation>
the class of the member variable.
NOTE: This must be the full class name unless it is a common class with a supported (ie hardcoded) shorthand notation.
Examples are the primitives (Integer...), RGB, PlotModel, and ColorBar
</documentation>
<appinfo>
<meta.attribute kind="java"/>
</appinfo>
</annotation>
</attribute>
<attribute name="paramType" type="string" use="required">
<annotation>
<documentation>
IMPLEMENTATION_PARAM,
REQUEST_CONSTRAINT,
EDITABLE_ATTRIBUTE,
NON_EDITABLE_ATTRIBUTE
</documentation>
</annotation>
</attribute>
<attribute name="constraintName" type="string">
<annotation>
<documentation>
db column name. defaults to the paramName. Example use is modelName for GDFILE
</documentation>
</annotation>
</attribute>
<attribute name="attributeName" type="string">
<annotation>
<documentation>
if and EDITABLE_ATTRIBUTE this is the name of the attribute (ie member variable
in the java class. This defaults to the paramName.
This only exists for Grid because the parameters are upper case and the
attr names are lowercase.
</documentation>
</annotation>
</attribute>
<attribute name="defaultValue" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
[Enter the first release in which this extension point appears.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
[Enter extension point usage example here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>
</schema>