Hi.
I encountered a problem using xmlbeans 2.0. When i try to compile a
certain schema the following message appears:
C:\Daten\SPS_x2j_test\with_XMLBeans\src\net\opengis\swe\impl\SoftTypedMeasureInt
ervalTypeImpl.java:14:
net.opengis.swe.impl.SoftTypedMeasureIntervalTypeImpl is
not abstract and does not override abstract method unsetCount() in
net.opengis.s
we.SoftTypedMeasureOrNullListType
public class SoftTypedMeasureIntervalTypeImpl extends
org.apache.xmlbeans.impl.v
alues.XmlListImpl implements net.opengis.swe.SoftTypedMeasureIntervalType
^
Note: * uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
The schema that causes the problems is attached (basicTypes.xsd which
includes gml4swe.xsd). Any suggestions what causes the errors and how
the problem can be solved?
Regards,
Johannes Echterhoff
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:swe="http://www.opengis.net/swe" targetNamespace="http://www.opengis.net/swe" elementFormDefault="qualified" attributeFormDefault="unqualified" version="pre-release">
<annotation>
<documentation>
basicTypes.xsd
Some basic types (simpleContent) required in various places in OWS Sensor Web application schemas
2005-05-03
Copyright © 2005 CSIRO - see https://www.seegrid.csiro.au/twiki/bin/view/Xmml/LegalNotices#Software_Notice
</documentation>
</annotation>
<!-- ====================================================================== -->
<!-- bring in other schemas -->
<import namespace="http://www.opengis.net/gml" schemaLocation="./gml4swe.xsd"/>
<!-- ====================================================================== -->
<!-- ===== Numeric Records and tables ====== -->
<!-- ====================================================================== -->
<complexType name="NumericRecordType">
<annotation>
<documentation>A set of numeric values, representing a record.
Generalises the approach used for gml:DirectPositionType, replacing "srsName" with "RS" (record schema).
This allows a record composed of numeric components to be recorded in compact form, as a whitespace-separated list of doubles.</documentation>
</annotation>
<simpleContent>
<extension base="gml:doubleList">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to record definition or schema.
The RS description should indicate the semantics/label and units of measure for each component,
and the order in which the components appear in the Record.
RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="NumericOrNullRecordType">
<annotation>
<documentation>A set of numeric or Null values, representing a Record.
Generalises the approach used for gml:DirectPositionType, replacing "srsName" with "RS" (record schema).
This allows a Record to be recorded in compact form, as a whitespace-separated list of doubles.</documentation>
</annotation>
<simpleContent>
<extension base="gml:doubleOrNullList">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to record definition or schema.
The RS description should indicate the semantics/label and units of measure for each component,
and the order in which the components appear in the Record.
RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="NumericRecordListType">
<annotation>
<documentation>A set of numeric values, representing a list of Records or a table.
This allows a table of values to be recorded in compact form, as a whitespace-separated list of doubles.
Record components increment fastest, followed by Record instances, so if you think of this as a table in which the rows are Records, then the representation is left-to-right followed by down the table.
To assist direct inspection of the data, good practice is to use
* linefeed between Records, and
* tab between components in a Record.
However any whitespace character sequence is a valid separator between items. </documentation>
</annotation>
<simpleContent>
<extension base="gml:doubleList">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to definition of the reference system for the Record.
The RS description should indicate the semantics/label and units of measure for each component,
and the order in which the components appear in the Record.
RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record. Should this be mandatory?</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
<attribute name="recordCount" type="nonNegativeInteger" use="optional">
<annotation>
<documentation>The number of Records in the list</documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="NumericOrNullRecordListType">
<annotation>
<documentation>A set of numeric or Null values, representing a list of Records or a table.
This allows a table of values to be recorded in compact form, as a whitespace-separated list of doubles.
Record components increment fastest, followed by Record instances, so if you think of this as a table in which the rows are Records, then the representation is left-to-right followed by down the table.
To assist direct inspection of the data, good practice is to use
* linefeed between Records, and
* tab between components in a Record.
However any whitespace character sequence is a valid separator between items. </documentation>
</annotation>
<simpleContent>
<extension base="gml:doubleOrNullList">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to definition of the reference system for the Record.
The RS description should indicate the semantics/label and units of measure for each component,
and the order in which the components appear in the Record.
RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record. Should this be mandatory?</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
<attribute name="recordCount" type="nonNegativeInteger" use="optional">
<annotation>
<documentation>The number of Records in the list</documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<!-- ===== General Records and tables ====== -->
<!-- ====================================================================== -->
<complexType name="RecordType">
<annotation>
<documentation>A set of values, representing a Record.
Generalises the approach used for swe:NumericRecordType.
This allows a Record to be recorded in compact form, as a list of tokens.
Note that XML "token" may contain embedded single spaces, so item separators should be tabs, linefeeds, or two or more consecutive spaces.
</documentation>
</annotation>
<simpleContent>
<extension base="swe:stringListType">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to definition of the reference system for the Record.
The RS description should indicate the semantics/label and
units of measure or value-space (if appropriate) for each component,
and the order in which the components appear in the Record.
RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="RecordListType">
<annotation>
<documentation>A set of values, representing a list of Records or a table.
This allows a table of values to be recorded in compact form, as a list of tokens.
Note that XML "token" may contain embedded single spaces, so item separators should be tabs, linefeeds, or two or more consecutive spaces.
Record components increment fastest, followed by Record instances, so if you think of this as a table in which the rows are Records, then the representation is left-to-right followed by down the table.
To assist direct inspection of the data, good practice is to use
* linefeed between Records, and
* tab between components in a Record.
However any whitespace character sequence is a valid separator between items. </documentation>
</annotation>
<simpleContent>
<extension base="swe:stringListType">
<attribute name="RS" type="anyURI" use="optional">
<annotation>
<documentation>Pointer to definition of the reference system for the Record. The RS description should indicate the semantics/label and units of measure for each component, and the order in which the components appear in the Record. RS may be ommitted, in which case it is the same as the previous value in the current context or document.</documentation>
</annotation>
</attribute>
<attribute name="recordLength" type="positiveInteger" use="optional">
<annotation>
<documentation>The number of components in the Record. Should this be mandatory?</documentation>
</annotation>
</attribute>
<!--
<attributeGroup ref="gml:SRSInformationGroup">
<annotation>
<documentation>Optionally include the axis-names and axis-labels as lists</documentation>
</annotation>
</attributeGroup>
-->
<attribute name="recordCount" type="nonNegativeInteger" use="optional">
<annotation>
<documentation>The number of Records in the list</documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<!-- ===== additional list types ====== -->
<!-- ====================================================================== -->
<simpleType name="refListType">
<list itemType="anyURI"/>
</simpleType>
<!-- ====================================================================== -->
<simpleType name="stringListType">
<annotation>
<documentation>
When appearing in a list context, internal whitespace is interpreted as an item separator.
Strings may be represented in a list by escaping spaces as a (non-breaking space) entity.
</documentation>
</annotation>
<list itemType="string"/>
</simpleType>
<!-- ====================================================================== -->
<!-- ===== Types used for category values ====== -->
<!-- ====================================================================== -->
<complexType name="ScopedNameType">
<annotation>
<documentation>Extension of string which also carries a codeSpace attribute. </documentation>
</annotation>
<simpleContent>
<extension base="string">
<attribute name="codeSpace" type="anyURI" use="required"/>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="ScopedNameListType">
<annotation>
<documentation>Extension of stringList which also carries a codeSpace attribute. </documentation>
</annotation>
<simpleContent>
<extension base="swe:stringListType">
<attribute name="codeSpace" type="anyURI" use="required"/>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ===================================================== -->
<!-- ===== SimpleContent types ====== -->
<!-- ====================================================================== -->
<simpleType name="other">
<restriction base="string">
<pattern value="other:\w{2,}"/>
</restriction>
</simpleType>
<!-- ====================================================================== -->
<!-- =========================================================== -->
<!-- ===== Soft-typed values and lists ====== -->
<!-- =========================================================== -->
<complexType name="SoftTypedBooleanType">
<annotation>
<documentation>A boolean value, representing a description of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="boolean">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described. </documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedBooleanListType">
<annotation>
<documentation>A list of boolean values, representing a set of descriptions of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:booleanList">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described. </documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedBooleanOrNullListType">
<annotation>
<documentation>A list of boolean values or Nulls, representing a set of descriptions of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:booleanOrNullList">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described. </documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<complexType name="SoftTypedCategoryType">
<annotation>
<documentation>A text value, taken from a value space identified by the value of the codeSpace attribute, and representing a description of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="swe:ScopedNameType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described.
This will usually refer to a classification or phenomenon described on a nominal scale,
such as lithology type, material colour. </documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedCategoryListType">
<annotation>
<documentation>A list of text values, taken from a value space identified by the value of the codeSpace attribute, and representing a set of descriptions of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="swe:ScopedNameListType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described.
This will usually refer to a classification or phenomenon described on a nominal scale,
such as lithology type, material colour. </documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<complexType name="MeasureListType">
<annotation>
<documentation>A list of numeric values, expressed using the scale indicated by the value of the (mandatory) uom attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureListType">
<!--
<attribute name="originalUom" type="anyURI" use="optional">
<annotation>
<documentation>When the value reported has been converted from the stored units (for example, raio values converted from ppm to a number), this attribute may be used to record the original units of measure.</documentation>
</annotation>
</attribute>
-->
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="MeasureIntervalType">
<annotation>
<documentation>A pair of numeric values, expressed using the scale indicated by the value of the (mandatory) uom attribute, attribute, and representing an interval of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<restriction base="swe:MeasureListType">
<length value="2"/>
<attribute name="count" type="nonNegativeInteger" use="prohibited"/>
</restriction>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedMeasureType">
<annotation>
<documentation>A numeric value, expressed using the scale indicated by the value of the (mandatory) uom attribute, attribute, and representing a description of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described.
This will usually refer to a measure described on a ratio or interval scale,
such as temperature, wavelength, concentration. </documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedMeasureListType">
<annotation>
<documentation>A list of numeric values, expressed using the scale indicated by the value of the (mandatory) uom attribute, attribute, and representing a set of descriptions of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureListType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described.
This will usually refer to a measure described on a ratio or interval scale,
such as temperature, wavelength, concentration. </documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedMeasureOrNullListType">
<annotation>
<documentation>A list of numeric values or Nulls, expressed using the scale indicated by the value of the (mandatory) uom attribute, attribute, and representing a set of descriptions of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<extension base="gml:MeasureOrNullListType">
<attribute name="property" type="anyURI">
<annotation>
<documentation>This attribute holds a reference to or label for the property being described.
This will usually refer to a measure described on a ratio or interval scale,
such as temperature, wavelength, concentration. </documentation>
</annotation>
</attribute>
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="count" type="nonNegativeInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- ====================================================================== -->
<complexType name="SoftTypedMeasureIntervalType">
<annotation>
<documentation>A pair of numeric values, expressed using the scale indicated by the value of the (mandatory) uom attribute, attribute, and representing an interval of the phenomenon identified by the property attribute. </documentation>
</annotation>
<simpleContent>
<restriction base="swe:SoftTypedMeasureOrNullListType">
<length value="2"/>
<attribute name="count" type="nonNegativeInteger" use="prohibited"/>
</restriction>
</simpleContent>
</complexType>
<!-- =================================================================== -->
<!-- ====================================================================== -->
<!-- =================================================================== -->
<!--
<group name="property">
<choice>
<element name="booleanProperty" type="swe:SoftTypedBooleanType" nillable="true"/>
<element name="categoryProperty" type="swe:SoftTypedCategoryType" nillable="true"/>
<element name="countProperty" type="swe:SoftTypedCountType" nillable="true"/>
<element name="measureProperty" type="swe:SoftTypedMeasureType" nillable="true"/>
<element name="objectProperty" type="gml:AssociationType" nillable="true"/>
<element name="temporalProperty" type="swe:SoftTypedTimeObjectType"/>
</choice>
</group>
-->
<!-- ====================================================================== -->
<!--
<attributeGroup name="simpleContentStandardAttributes">
<attribute name="nilReason" type="gml:NullType" use="optional"/>
<attribute name="metadata" type="anyURI" use="optional"/>
<attribute name="metadataRole" type="swe:simpleContentMetadataType" use="optional"/>
</attributeGroup>
-->
<!-- ===================================================== -->
<!--
<simpleType name="simpleContentMetadataType">
<union memberTypes="swe:observationRelatedRoles swe:other"/>
</simpleType>
-->
<!-- ===================================================== -->
<!--
<simpleType name="observationRelatedRoles">
<annotation>
<documentation>This type provides a set of standard tokens indicating that the metadata concerns various descriptors related to the observation process</documentation>
</annotation>
<restriction base="string">
<enumeration value="observationEvent">
<annotation>
<documentation>Details of the observation or measurement event that led to the determination of the reported value</documentation>
</annotation>
</enumeration>
<enumeration value="observationProcedure">
<annotation>
<documentation>Details of the generic procedure used to determine the reported value</documentation>
</annotation>
</enumeration>
<enumeration value="observationResponsibleParty">
<annotation>
<documentation>Identity or details realted to the party responsible for making the observation</documentation>
</annotation>
</enumeration>
</restriction>
</simpleType>
-->
<!-- ===================================================== -->
</schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.00">
<xs:annotation>
<xs:documentation>
gml4swe.xsd
Utility schema which simply includes the GML schema documents required for the sweCommon schemas</xs:documentation>
</xs:annotation>
<!-- ==============================================================
includes and imports
============================================================== -->
<xs:include schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/feature.xsd"/>
</xs:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]