Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlObject.schemaType()


            XmlObject siblingXmlObject = xCursor.getObject();
            QName siblingXmlObjectQname = getName(siblingXmlObject);

            // TODO: should this be tested against the original bean
            //if it contains the ElementProperty, then it is not an Any
            if ( siblingXmlObject.schemaType().getElementProperty( siblingXmlObjectQname ) != null )
            {
                continue;
            }

            //check to see if we have a xmlObjectList to add to for this QName
View Full Code Here


        Map qnameToListMap = new HashMap();
        XmlCursor xCursor = xmlObjectToSearch.newCursor();
        for ( boolean hasNext = xCursor.toFirstChild(); hasNext; hasNext = xCursor.toNextSibling() )
        {
            XmlObject siblingXmlObject = xCursor.getObject();
            QName siblingXmlObjectQname = siblingXmlObject.schemaType().getName();

            // TODO: should this be tested against the original bean
            //if it contains the ElementProperty, then it is not an Any
            if ( siblingXmlObject.schemaType().getElementProperty( siblingXmlObjectQname ) != null )
            {
View Full Code Here

            XmlObject siblingXmlObject = xCursor.getObject();
            QName siblingXmlObjectQname = siblingXmlObject.schemaType().getName();

            // TODO: should this be tested against the original bean
            //if it contains the ElementProperty, then it is not an Any
            if ( siblingXmlObject.schemaType().getElementProperty( siblingXmlObjectQname ) != null )
            {
                continue;
            }

            //check to see if we have a xmlObjectList to add to for this QName
View Full Code Here

        catch ( Exception e )
        {
            throw new IllegalArgumentException( MSG.getMessage( Keys.UNABLE_TO_CONVERT_TO_XMLOBJECT ) );
        }

        if ( propXBeanToRemove.schemaType().getName().equals( m_metaData.getName() ) )
        {
            throw new IllegalArgumentException( MSG.getMessage( Keys.PROP_ELEM_TO_REMOVE_MST_B_NAMED,
                    m_metaData.getName() ) );
        }
View Full Code Here

                continue;
            }

            Collection errors = new ArrayList();

            if (xobj.schemaType() == XmlObject.type)
            {
                System.out.println(instanceFiles[i] + " NOT valid.  ");
                System.out.println("  Document type not found." );
            }
            else if (xobj.validate(new XmlOptions().setErrorListener(errors)))
View Full Code Here

    }
   
    public void v ( String xml ) throws Exception
    {
        XmlObject x = XmlObject.Factory.parse( xml );
        Assert.assertTrue( x.schemaType() != XmlObject.type );
        Assert.assertTrue( x.validate() );
    }
   
    public void nv ( String xml ) throws Exception
    {
View Full Code Here

    }
   
    public void nv ( String xml ) throws Exception
    {
        XmlObject x = XmlObject.Factory.parse( xml );
        Assert.assertTrue( x.schemaType() != XmlObject.type );
        Assert.assertTrue( !x.validate() );
    }
   
    public void ___testDefault ( ) throws Exception
    {
View Full Code Here

            resultType = findXsiType( xsiType );
          }
        }

        if( resultType == null )
          resultType = typeSystem.findType( xo.schemaType().getName() );

        if( resultType == null )
          resultType = xo.schemaType();

        if( resultType.isNoType() )
View Full Code Here

        if( resultType == null )
          resultType = typeSystem.findType( xo.schemaType().getName() );

        if( resultType == null )
          resultType = xo.schemaType();

        if( resultType.isNoType() )
        {
          QName nm = cursor.getName();
View Full Code Here

          XmlCursor cursor = include.newCursor();
          cursor.toParent();
          XmlObject parentXmlObject = cursor.getObject();
          cursor.dispose();

          SchemaType schemaType = parentXmlObject.schemaType();
          Node parentNode = elm.getParentNode();

          if( schemaType.isNoType() )
          {
            SchemaTypeSystem typeSystem = wsdlRequest.getOperation().getInterface().getWsdlContext()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.