You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc <ra...@oracle.com> on 2009/05/09 00:39:43 UTC

Re: isAbstract returning wrong value

The Schema snippet doesn't say that the type is abstract, but that the
element "Collection" is abstract, so you should check the value on
SchemaGlobalElementImpl._abs.

Radu

On Sun, 2009-05-10 at 07:51 -0700, Matthew Young wrote:
> using XMLBeans 2.4
> 
> the _abs property with the schema Type associated with the following XML is
> not set properly (ie. not sure how setAbstractFinal gets used internally):
>      <xs:element name="Collection" type="logical:Collection"
> abstract="true"></xs:element>
> 
> _abs is always equal to false despite the abstract attribute in the xml
> schema?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: isAbstract returning wrong value

Posted by Matthew Young <ma...@forsakringskassan.se>.
worked perfect:

System.out.println(XmlBeans.getContextTypeLoader().findElement(
				new QName("http://www.klistret.com/cmdb/element/logical",
						"Collection")).isAbstract());
-- 
View this message in context: http://www.nabble.com/isAbstract-returning-wrong-value-tp23470818p23508059.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org