Examples of XMLValidationProblem


Examples of org.codehaus.stax2.validation.XMLValidationProblem

    public void reportValidationProblem(String format, Object arg)
        throws XMLValidationException
    {
        String msg = MessageFormat.format(format, new Object[] { arg });
        reportValidationProblem(new XMLValidationProblem(getLastCharLocation(),
                                                         msg));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

    public void reportValidationProblem(String format, Object arg, Object arg2)
        throws XMLValidationException
    {
        String msg = MessageFormat.format(format, new Object[] { arg, arg2 });
        reportValidationProblem(new XMLValidationProblem(getLastCharLocation(),
                                                         msg));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

        public void reportUndeclared(ValidationContext ctxt)
            throws XMLValidationException
        {
            String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName });
            ctxt.reportProblem(new XMLValidationProblem
                               (mLocation, msg,
                                XMLValidationProblem.SEVERITY_FATAL));
        }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

        throws XMLStreamException
    {
        if (loc == null) {
            loc = getLastCharLocation();
        }
        _reportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

    }

    public void reportValidationProblem(String msg, int severity)
        throws XMLStreamException
    {
        reportValidationProblem(new XMLValidationProblem(getLastCharLocation(),
                                                         msg, severity));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

    }

    public void reportValidationProblem(String msg)
        throws XMLStreamException
    {
        reportValidationProblem(new XMLValidationProblem(getLastCharLocation(),
                                                         msg,
                                                         XMLValidationProblem.SEVERITY_ERROR));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

    }

    public void reportValidationProblem(Location loc, String msg)
        throws XMLStreamException
    {
        reportValidationProblem(new XMLValidationProblem(loc, msg));
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

                                                             inputEnc });
            String type = ErrorConsts.WT_XML_DECL;
            /* 30-May-2008, tatus: Should wrap all the info as XMValidationProblem
             *    since that's Woodstox' contract wrt. relatedInformation field.
             */
            XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_WARNING, type);
            rep.report(msg, type, prob, loc);
        }
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

    {
        if (rep != null) {
            /* Note: since the problem occurs at DTD (schema) parsing,
             * not during validation, can not set reporter.
             */
            XMLValidationProblem prob = new XMLValidationProblem
                (loc, msg, XMLValidationProblem.SEVERITY_WARNING, probType);
            rep.report(msg, probType, prob, loc);
        }
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

        throws XMLStreamException
    {
        if (loc == null) {
            loc = getLastCharLocation();
        }
        _reportProblem(rep, new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_ERROR, probType));
    }
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.