Examples of schemaType()


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

                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

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

    }
   
    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

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

    }
   
    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

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

            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

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

        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

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

          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

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

            break;
          }

          XmlObject xmlObj = cursor.getObject();
          SchemaType schemaType = xmlObj.schemaType();
          if( schemaType.isNoType() )
          {
            if( treeModel == null )
            {
              treeModel = new XmlObjectTreeModel( messagePart.getSchemaType().getTypeSystem(), rootXmlObject );
View Full Code Here

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

    protected static XmlObject[] convert(XmlObject[] xmlObjects, NamespaceElementConverter converter, SchemaType type) throws DeploymentException {
        //bizarre ArrayStoreException if xmlObjects is loaded by the wrong classloader
        XmlObject[] converted = new XmlObject[xmlObjects.length];
        for (int i = 0; i < xmlObjects.length; i++) {
            XmlObject xmlObject = xmlObjects[i].copy();
            if (xmlObject.schemaType() != type) {
                converter.convertElement(xmlObject);
                converted[i] = xmlObject.changeType(type);
            } else {
                converted[i] = xmlObject;
            }
View Full Code Here

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

        throws Exception
    {
        XmlObject x;
       
        x = XmlObject.Factory.parse( "<xoo/>" );
        Assert.assertTrue( x.schemaType() == XmlBeans.NO_TYPE );
       
        x = XmlObject.Factory.parse(
            "<schema xmlns='http://www.w3.org/2001/XMLSchema'/>" );
        Assert.assertTrue(
            x.schemaType() == org.w3.x2001.xmlSchema.SchemaDocument.type );
View Full Code Here

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

        Assert.assertTrue( x.schemaType() == XmlBeans.NO_TYPE );
       
        x = XmlObject.Factory.parse(
            "<schema xmlns='http://www.w3.org/2001/XMLSchema'/>" );
        Assert.assertTrue(
            x.schemaType() == org.w3.x2001.xmlSchema.SchemaDocument.type );

        x = XmlObject.Factory.parse(
            "<schema xmlns='http://www.w3.org/2001/XMLSchema/moo'/>" );
        Assert.assertTrue( x.schemaType() == XmlBeans.NO_TYPE );
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.