Package org.apache.xerces.xs.datatypes

Examples of org.apache.xerces.xs.datatypes.XSDecimal


                case XSConstants.BYTE_DT:
                case XSConstants.UNSIGNEDBYTE_DT:
                case XSConstants.UNSIGNEDINT_DT:
                case XSConstants.UNSIGNEDLONG_DT:
                case XSConstants.UNSIGNEDSHORT_DT:
                    XSDecimal decimal = (XSDecimal)value;
                    System.out.println(decimal.getInt());
                    break;
                   
                case XSConstants.DATE_DT:
                case XSConstants.DATETIME_DT:
                case XSConstants.GDAY_DT:
View Full Code Here


                case XSConstants.BYTE_DT:
                case XSConstants.UNSIGNEDBYTE_DT:
                case XSConstants.UNSIGNEDINT_DT:
                case XSConstants.UNSIGNEDLONG_DT:
                case XSConstants.UNSIGNEDSHORT_DT:
                    XSDecimal decimal = (XSDecimal)value;
                    System.out.println(decimal.getInt());
                    break;
                   
                case XSConstants.DATE_DT:
                case XSConstants.DATETIME_DT:
                case XSConstants.GDAY_DT:
View Full Code Here

    private static final XSDecimal SUPPORTED_VERSION_1_0 = getSupportedVersion(XSD_VERSION_1_0);
    private static final XSDecimal SUPPORTED_VERSION_1_1 = getSupportedVersion(XSD_VERSION_1_1);
    private XSDecimal fSupportedVersion = SUPPORTED_VERSION_1_0;
   
    private static XSDecimal getSupportedVersion(String version) {
        XSDecimal result = null;
        try {
            result = (XSDecimal) DECIMAL_DV.getActualValue(version, null);
        }
        catch (InvalidDatatypeValueException ide) {
        }
View Full Code Here

                case XSConstants.BYTE_DT:
                case XSConstants.UNSIGNEDBYTE_DT:
                case XSConstants.UNSIGNEDINT_DT:
                case XSConstants.UNSIGNEDLONG_DT:
                case XSConstants.UNSIGNEDSHORT_DT:
                    XSDecimal decimal = (XSDecimal)value;
                    System.out.println(decimal.getInt());
                    break;
                   
                case XSConstants.DATE_DT:
                case XSConstants.DATETIME_DT:
                case XSConstants.GDAY_DT:
View Full Code Here

    private static final XSDecimal SUPPORTED_VERSION_1_0 = getSupportedVersion(XSD_VERSION_1_0);
    private static final XSDecimal SUPPORTED_VERSION_1_1 = getSupportedVersion(XSD_VERSION_1_1);
    private XSDecimal fSupportedVersion = SUPPORTED_VERSION_1_0;
   
    private static XSDecimal getSupportedVersion(String version) {
        XSDecimal result = null;
        try {
            result = (XSDecimal) DECIMAL_DV.getActualValue(version, null);
        }
        catch (InvalidDatatypeValueException ide) {
        }
View Full Code Here

            String uri = attributes.getURI(i);
            if (uri != null && uri == SchemaSymbols.URI_SCHEMAVERSION) {
                String attrLocalName = attributes.getLocalName(i);
                if (attrLocalName == SchemaSymbols.ATT_MINVERSION) {
                    try {
                        XSDecimal minVer = (XSDecimal) fDecimalDV.getActualValue(attributes.getValue(i), null);
                        if (fDecimalDV.compare(minVer, fSupportedVersion) == 1) {
                            fIgnoreDepth++;
                            return;
                        }
                    }
                    catch (InvalidDatatypeValueException ide) {
                        fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN,
                                "s4s-att-invalid-value",
                                new Object[] {element.localpart, attrLocalName, ide.getMessage()},
                                XMLErrorReporter.SEVERITY_ERROR);
                    }
                }
                else if (attrLocalName == SchemaSymbols.ATT_MAXVERSION) {
                    try {
                        XSDecimal maxVer = (XSDecimal) fDecimalDV.getActualValue(attributes.getValue(i), null);
                        if (fDecimalDV.compare(maxVer, fSupportedVersion) == -1) {
                            fIgnoreDepth++;
                            return;
                        }
                    }
View Full Code Here

TOP

Related Classes of org.apache.xerces.xs.datatypes.XSDecimal

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.