Package org.apache.wsif.compiler.schema

Examples of org.apache.wsif.compiler.schema.SchemaException


                        "attributeGroup",
                        ref.getLocalPart(),
                        false),
                    false);
        else {
            throw new SchemaException(
                "Attribute group can only be defined at " + "the top level.");
        }
        file.addField(field);

        return file;
View Full Code Here


            // However, it could also be a simpleType in which case we are screwed.

            String javaType = getJavaType(type, targetURI, "complexType");
            file.addField(new ClassField(javaType, name, elm.isArray()));
        } else if (child == null) {
            throw new SchemaException(
                "The type of this element is unknown: '" + name + "'.");
        } else if (child.getElementType() == SchemaType.SIMPLETYPE) {
            file =
                simpleType2Field(
                    name,
                    elm.isArray(),
                    (SchemaSimpleType) child,
                    file);
        } else if (child.getElementType() == SchemaType.COMPLEXTYPE) {
            throw new SchemaException(
                "Inner complex-types are not supported: '" + name + "'.");

            //      String cname = Conventions.schema2JavaName ("element", name, true);
            //      file.addField (new ClassField (cname, name, elm.isArray ()));
            //      file.addInnerClass (complexType2Class (cname, (SchemaComplexType) child));
View Full Code Here

                "Argument to 'getJavaType' " + "cannot be null.");

        String type = (String) registry.get(name);

        if (type == null) {
            throw new SchemaException(
                "Basic type '" + name + "' not supported.");

            //      type = getGenericJavaName (name, elementType);
        }
View Full Code Here

        for (Iterator it2 = simpleTypeTable.keySet().iterator();
            it2.hasNext();
            ) {
            if (!registry.containsKey((QName) it2.next()))
                throw new SchemaException(
                    "'simpleType' definitions have cyclic " + "dependency.");
        }

        for (int i = 0; i < elements.size(); i++) {
            SchemaType element = (SchemaType) elements.elementAt(i);
View Full Code Here

TOP

Related Classes of org.apache.wsif.compiler.schema.SchemaException

Copyright © 2018 www.massapicom. 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.