Package com.volantis.mcs.xml.validation.sax

Examples of com.volantis.mcs.xml.validation.sax.AttributeResolvingParserError


                        0,
                        true));

                // this error will occur when a given attributes value
                // is not of the declared type
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-datatype-valid.1.2.1",
                        FaultTypes.INVALID_SCHEMA_DATA_TYPE,
                        0));

                // this error will occur when a given attributes value
                // is not of the declared type
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-datatype-valid.1.2.2",
                        FaultTypes.INVALID_POLICY_NAME,
                        0));

                // this error will occur when a given elements value
                // is not of the declared type
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-datatype-valid.1.2.1",
                        FaultTypes.INVALID_SCHEMA_DATA_TYPE,
                        0,
                        false));

                // this error will occur when a required attribute is missing
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-enumeration-valid",
                        FaultTypes.INVALID_SELECTION,
                        0));

                // this error will occur when a required attribute is missing
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-enumeration-valid",
                        FaultTypes.INVALID_SELECTION,
                        0,
                        false));

                // this error will occur when a given attributes value
                // is not of the declared type
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-pattern-valid",
                        FaultTypes.INVALID_SCHEMA_PATTERN_VALUE,
                        0));

                // this error will occur when a given elements value
                // is not of the declared type
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-pattern-valid",
                        FaultTypes.INVALID_SCHEMA_PATTERN_VALUE,
                        0,
                        false));

                // this error will occur when a schema constraint key is
                // not found
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "KeyNotFound",
                        FaultTypes.SCHEMA_CONSTRAINT_VIOLATED,
                        0,
                        false));

                // this error will occur when a schema constraint key is
                // violated
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "DuplicateKey",
                        FaultTypes.DUPLICATE_NAME,
                        0,
                        false));

                // this error will occur when an attribute has exceeded
                // a max inclusive constraint. The error param will
                // contain the value that is in error. THIS ERROR MUST PRECEED
                // THE PARSER element equivalent for "cvc-maxInclusive-valid"
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-maxInclusive-valid",
                        FaultTypes.MAX_INCLUSIVE_VIOLATED,
                        0));

                // this error will occur when an elemnt has exceeded
                // a max inclusive constraint. The error param will
                // contain the value that is in error
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-maxInclusive-valid",
                        FaultTypes.MAX_INCLUSIVE_VIOLATED,
                        0,
                        false));

                // this error will occur when an attribute has exceeded
                // a min inclusive constraint. The error param will
                // contain the value that is in error. THIS ERROR MUST PRECEED
                // THE PARSER element equivalent for "cvc-minInclusive-valid"
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-minInclusive-valid",
                        FaultTypes.MIN_INCLUSIVE_VIOLATED,
                        0));

                // this error will occur when an element has exceeded
                // a min inclusive constraint. The error param will
                // contain the value that is in error
                parserErrors.add(new ParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-minInclusive-valid",
                        FaultTypes.MIN_INCLUSIVE_VIOLATED,
                        0,
                        false));

                // this error will occur when an attribute has exceeded
                // a max length constraint. The error param will
                // name the attribute that is in error. THIS ERROR MUST PRECEED
                // THE PARSER element equivalent for "cvc-maxInclusive-valid"
                parserErrors.add(new AttributeResolvingParserError(
                        XSD_MESSAGE_BUNDLE,
                        "cvc-maxLength-valid",
                        FaultTypes.MAX_LENGTH_VIOLATED,
                        0));
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xml.validation.sax.AttributeResolvingParserError

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.