Hi,
sorry about my confusing question.
Firstly, as you can see from the schema, the structure is inputs ->
inputsType -> _AbstractListType (abstract) -> input. the xjc.sh only
generate classes as inputs, inputsType, and AbstractListType. A method
getAny() was generated from xs:Any element as described in
https://jaxb.dev.java.net/guide/Mapping_of__xs_any___.html
however, there is no input class for me to generate input objects to
insert into the abstractListType getAny() list. I think the restriction
in the schema is stating that the _AbstractList takes input element, right?
so to summarise the question:
Basically, what I want is to let the JAXB schema compiler to generate a
class as input for me, so that I can create input objects of swe:anyData
type and insert them into the _AbstractList, getAny() list.
full schema is available from
http://vast.uah.edu/SensorML/schema/sensorML_2006-05-09.zip
regards;
Peizhao
>
>
> <xs:complexType name="inputsType">
>> <xs:sequence minOccurs="0">
>> <xs:element name="InputList" type="sml:_AbstractListType"/>
>> </xs:sequence>
>> <xs:attributeGroup ref="swe:AssociationAttributes"/>
>> </xs:complexType>
>>
>>
>> <xs:complexType name="_AbstractListType">
>> <xs:sequence>
>> <xs:any namespace="##any" processContents="strict"
>> maxOccurs="unbounded"/>
>> </xs:sequence>
>> <xs:attribute name="id" type="xs:ID" use="optional"/>
>> </xs:complexType>
>>
>>
>> <xs:element name="inputs">
>> <xs:annotation>
>> <xs:documentation>list of input signals</xs:documentation>
>> </xs:annotation>
>> <xs:complexType>
>> <xs:complexContent>
>> <xs:restriction base="sml:inputsType">
>> <xs:sequence minOccurs="0">
>> <xs:element name="InputList">
>> <xs:complexType>
>> <xs:complexContent>
>> <xs:restriction
>> base="sml:_AbstractListType">
>> <xs:sequence>
>> <xs:element name="input"
>> maxOccurs="unbounded">
>> <xs:complexType>
>> <xs:group
>> ref="swe:AnyData" minOccurs="0"/>
>> <xs:attribute
>> name="name" type="swe:qnameSimpleType" use="required"/>
>>
>> <xs:attributeGroup ref="swe:AssociationAttributes"/>
>> </xs:complexType>
>> </xs:element>
>> </xs:sequence>
>> </xs:restriction>
>> </xs:complexContent>
>> </xs:complexType>
>> </xs:element>
>> </xs:sequence>
>> </xs:restriction>
>> </xs:complexContent>
>> </xs:complexType>
>> </xs:element>
>>
>
>