Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlValidationError


            if (!dd.validate(xmlOptions)) {

                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    Object o = iterator.next();
                    if (o instanceof XmlValidationError) {
                        XmlValidationError validationError = (XmlValidationError) o;
                        List expected = validationError.getExpectedQNames();
                        QName actual = validationError.getOffendingQName();
                        if (expected != null) {
                            for (Iterator iterator1 = expected.iterator(); iterator1.hasNext();) {
                                QName expectedQName = (QName) iterator1.next();
                                QNameSet substitutions = getQNameSetForSubstitutionGroup(expectedQName);
                                if (substitutions != null && substitutions.contains(actual)) {
View Full Code Here


            List<AssertionError> response = new ArrayList<AssertionError>();
            for (Iterator<XmlError> i = errors.iterator(); i.hasNext(); ) {
                XmlError error = i.next();

                if (error instanceof XmlValidationError) {
                    XmlValidationError e = ((XmlValidationError) error);
                    QName offendingQName = e.getOffendingQName();
                    if (offendingQName != null) {
                        if (offendingQName.equals(new QName(wsdlContext.getSoapVersion().getEnvelopeNamespace(),
                                "encodingStyle"))) {
                            log.debug("ignoring encodingStyle validation..");
                            continue;
View Full Code Here

        // transfer errors for "real" line numbers
        for (int c = 0; c < list.size(); c++) {
            XmlError error = (XmlError) list.get(c);

            if (error instanceof XmlValidationError) {
                XmlValidationError validationError = ((XmlValidationError) error);

                if (wsdlContext.getSoapVersion().shouldIgnore(validationError)) {
                    continue;
                }

                // ignore cid: related errors
                if (validationError.getErrorCode().equals("base64Binary")
                        || validationError.getErrorCode().equals("hexBinary")) {
                    XmlCursor cursor = validationError.getCursorLocation();
                    if (cursor.toParent()) {
                        String text = cursor.getTextValue();

                        // special handling for soapui/MTOM -> add option for
                        // disabling?
View Full Code Here

            if (!dd.validate(xmlOptions)) {

                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    Object o = iterator.next();
                    if (o instanceof XmlValidationError) {
                        XmlValidationError validationError = (XmlValidationError) o;
                        List<QName> expected = validationError.getExpectedQNames();
                        QName actual = validationError.getOffendingQName();
                        if (expected != null) {
                            for (QName expectedQName : expected) {
                                QNameSet substitutions = getQNameSetForSubstitutionGroup(expectedQName);
                                if (substitutions != null && substitutions.contains(actual)) {
                                    iterator.remove();
View Full Code Here

            if (!dd.validate(xmlOptions)) {

                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    Object o = iterator.next();
                    if (o instanceof XmlValidationError) {
                        XmlValidationError validationError = (XmlValidationError) o;
                        List<QName> expected = validationError.getExpectedQNames();
                        QName actual = validationError.getOffendingQName();
                        if (expected != null) {
                            for (QName expectedQName : expected) {
                                QNameSet substitutions = getQNameSetForSubstitutionGroup(expectedQName);
                                if (substitutions != null && substitutions.contains(actual)) {
                                    iterator.remove();
View Full Code Here

            if (!dd.validate(xmlOptions)) {

                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    Object o = iterator.next();
                    if (o instanceof XmlValidationError) {
                        XmlValidationError validationError = (XmlValidationError) o;
                        List expected = validationError.getExpectedQNames();
                        QName actual = validationError.getOffendingQName();
                        if (expected != null) {
                            for (Iterator iterator1 = expected.iterator(); iterator1.hasNext();) {
                                QName expectedQName = (QName) iterator1.next();
                                QNameSet substitutions = getQNameSetForSubstitutionGroup(expectedQName);
                                if (substitutions != null && substitutions.contains(actual)) {
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.XmlValidationError

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.