xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Vasilik" <eric...@bea.com>
Subject RE: XmlBeans: QName -> Java FQN?
Date Mon, 22 Mar 2004 17:26:26 GMT
You should be able to do the following:

    SchemaType t = 
        findType(
            new QName(
               "http://www.w3.org/2001/XMLSchema", "string" ) );

    t.getFullJavaName()

to get the name of the interface which represents that type.

- Eric

-----Original Message-----
From: Aleksander Slominski [mailto:aslom@cs.indiana.edu] 
Sent: Friday, March 19, 2004 12:59 PM
To: xmlbeans-dev@xml.apache.org
Subject: XmlBeans: QName -> Java FQN?

hi,

is there a simple function that can be called that first will give 
canonical XMLBeans type FQN for given XSD QName (for examples xsd:String

-> XmlString)? here is the list but it seems stupid to put this list 
into my code ...
http://xml.apache.org/xmlbeans/docs/guide/conXMLBeansSupportBuiltInSchem
aTypes.html

second: can i get Java FQN for given schema qname? can this happen 
without compilation of schema or based on existing compiled schema (can 
behavior be selected)? i am sure that it is somewhere in source code ...

but my cursory look on StscJavaizer and friends did not help much :(

thanks,

alek

-- 
The best way to predict the future is to invent it - Alan Kay


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message