You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Michael Glavassevich <mr...@ca.ibm.com> on 2007/05/09 17:49:52 UTC

Re: How to get the enumeration's annotation ?

Hi Jing,

The annotation is available on the XSMultiValueFacet for the enumeration. 
This is accessible from the XSSimpleTypeDefinition. See [1] and [2] for 
more info.

Thanks.

[1] 
http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSSimpleTypeDefinition.html#getMultiValueFacets()
[2] 
http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSMultiValueFacet.html#getAnnotations()

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

"Jing Yang" <jy...@jbmanagement.com> wrote on 05/09/2007 09:42:52 AM:

> Is it possible to use schema API  for  retrieving the enumeration's
> annotation ?(see below)
> How to do it ?
> 
> <xsd:simpleType name="TestType">
>    <xsd:restriction base="xsd:string">
>       <xsd:enumeration value="A">
>          <xsd:annotation>
>             <xsd:appinfo>
>                <DataType>string</DataType>
>                <Explanation>XXX</Explanation>
> 
>             </xsd:appinfo>
>          </xsd:annotation>
>       </xsd:enumeration>
>    </xsd:restriction>
> </xsd:simpleType>
> 
> 
> Thanks,
> 
> Jing
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org