logo       

Problems trying to use annotation support in v2: msg#00112

text.xml.xmlbeans.user

Subject: Problems trying to use annotation support in v2

I am trying to use the v2 annotation support to get access to appinfo
elements in a schema. I can send the entire schema and the code that
read it if that would help, but it is long.

I have defined the following type:

<xs:complexType name="category">
<xs:complexContent>
<xs:extension base="aptas:baseEntity">
<xs:sequence>
<xs:element type="aptas:localizedString" name="name"
minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<papyrus:papyrusAppinfo>
<papyrus:sourceClass>
com.aptas.alexandria.vo.Category
</papyrus:sourceClass>
<papyrus:sourceMethod>
getName
</papyrus:sourceMethod>
</papyrus:papyrusAppinfo>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element type="aptas:property" name="property"
minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<papyrus:papyrusAppinfo>
<papyrus:sourceClass>
com.aptas.alexandria.vo.Category
</papyrus:sourceClass>
<papyrus:sourceMethod>
getProperties
</papyrus:sourceMethod>
</papyrus:papyrusAppinfo>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>

When I look at the SchemaType for the name attribute in the debugger,
the annotation field is null. Is this a bug, or am I doing something
wrong?

--
Jim McMaster
mailto:jmcmaster@xxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise