Package org.exolab.castor.xml.schema

Examples of org.exolab.castor.xml.schema.Facet.toBigDecimal()


                throw new SchemaException(
                        "It is an error for both minInclusive and minExclusive "
                        + "to be specified for the same datatype.");
            } else if (otherName.equals(Facet.MAX_INCLUSIVE)
                    && getOwningType().isNumericType()
                    && this.toBigDecimal().compareTo(other.toBigDecimal()) >= 0) {
                // Schema Component Constraint: minExclusive < maxInclusive
                throw new SchemaException(
                        "It is an error for the value specified "
                        + "for minExclusive to be greater than "
                        + "or equal to the value specified for "
View Full Code Here


                // Schema Component Constraint: minExclusive valid restriction
                //   It is an error if any of the following conditions is true:
                if (otherName.equals(Facet.MIN_EXCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) < 0) {
                    // [1]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "minExclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is less than "
View Full Code Here

                            + "minExclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is less than "
                            + "the {value} of the parent minExclusive.");
                } else if (otherName.equals(Facet.MAX_INCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) > 0) {
                    // [2]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "maxInclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is greater than "
View Full Code Here

                            + "maxInclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is greater than "
                            + "the {value} of the parent maxInclusive.");
                } else if (otherName.equals(Facet.MIN_INCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) < 0) {
                    // [3]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "minInclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is less than "
View Full Code Here

                            + "minInclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is less than "
                            + "the {value} of the parent minInclusive.");
                } else if (otherName.equals(Facet.MAX_EXCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) >= 0) {
                    // [4]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "maxExclusive is among the members of {facets} of "
                            + "{base type definition} and {value} is greater than "
View Full Code Here

                throw new SchemaException(
                        "It is an error for both maxInclusive and maxExclusive "
                        + "to be specified in the same derivation step "
                        + "of a datatype definition.");
            } else if (otherName.equals(Facet.MIN_EXCLUSIVE)
                     && other.toBigDecimal().compareTo(this.toBigDecimal()) > 0) {
                // Schema Component Constraint: minExclusive <= maxExclusive
                throw new SchemaException(
                        "It is an error for the value specified "
                        + "for minExclusive to be greater than the value "
                        + "specified for maxExclusive for the same datatype.");
View Full Code Here

                // Schema Component Constraint: maxExclusive valid restriction
                //   It is an error if any of the following conditions is true:
                if (otherName.equals(Facet.MAX_EXCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) > 0) {
                    // [1]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "maxExclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is greater than "
View Full Code Here

                            + "maxExclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is greater than "
                            + "the {value} of the parent maxExclusive.");
                } else if (otherName.equals(Facet.MAX_INCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) > 0) {
                    // [2]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "maxInclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is greater than "
View Full Code Here

                            + "maxInclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is greater than "
                            + "the {value} of the parent maxInclusive.");
                } else if (otherName.equals(Facet.MIN_INCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) <= 0) {
                    // [3]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "minInclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is less than "
View Full Code Here

                            + "minInclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is less than "
                            + "or equal to the {value} of the parent minInclusive.");
                } else if (otherName.equals(Facet.MIN_EXCLUSIVE)
                        && getOwningType().isNumericType()
                        && this.toBigDecimal().compareTo(other.toBigDecimal()) <= 0) {
                    // [4]
                    throw new SchemaException(
                            "It is an error if the following condition is true: "
                            + "minExclusive is among the members of {facets} "
                            + "of {base type definition} and {value} is less than "
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.