Examples of XSInteger


Examples of com.marklogic.xcc.types.XSInteger

  public void testEmptyDatabase() throws Exception {
    executeLibraryModule(modulePath, moduleNamespace, "emptyDatabase");
    // Verify update by running a query
    String q = "fn:count(fn:doc())";
    ResultSequence rs = this.executeQuery(q, null, null);
    XSInteger qResult = (XSInteger)rs.itemAt(0);
    assertEquals(getName(), 0, qResult.asPrimitiveInt());
  }
View Full Code Here

Examples of org.eclipse.wst.xml.xpath2.processor.internal.types.XSInteger

        // decimal and it's subtypes
        else if ("decimal".equals(xsdTypeName)) {     
           psychoPathType = new XSDecimal(new BigDecimal(value));
        }
        else if ("integer".equals(xsdTypeName)) {     
           psychoPathType = new XSInteger(new BigInteger(value));
        }
        else if ("long".equals(xsdTypeName)) {    
           psychoPathType = new XSLong(new BigInteger(value));
        }
        else if ("int".equals(xsdTypeName)) {     
View Full Code Here

Examples of org.exolab.castor.builder.types.XSInteger

                if (!simpleType.isBuiltInType()) {
                    xsGYear.setFacets(simpleType);
                }
                return xsGYear;
            case SimpleTypesFactory.INTEGER_TYPE:        //-- integer
                XSInteger xsInteger = new XSInteger(useWrapper);
                if (!simpleType.isBuiltInType()) {
                    xsInteger.setFacets(simpleType);
                }
                return xsInteger;
            case SimpleTypesFactory.INT_TYPE:            //-- int
                XSInt xsInt = new XSInt(useWrapper);
                if (!simpleType.isBuiltInType()) {
View Full Code Here

Examples of org.exolab.castor.builder.types.XSInteger

        } else if (javaType.equals(TypeNames.FLOAT_OBJECT)) {
            return new XSFloat(true);
        } else if (javaType.equals(TypeNames.FLOAT_PRIMITIVE)) {
            return new XSDouble(false);
        } else if (javaType.equals(TypeNames.INTEGER)) {
            return new XSInteger(true);
        } else if (javaType.equals(TypeNames.INT)) {
            return new XSInt();
        } else if (javaType.equals(TypeNames.SHORT_OBJECT)) {
            return new XSShort(true);
        } else if (javaType.equals(TypeNames.SHORT_PRIMITIVE)) {
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

                    XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
                   
                    @SuppressWarnings("unchecked")
                    XMLObjectBuilder<XSInteger> xsIntegerBuilder =
                        (XMLObjectBuilder<XSInteger>)builderFactory.getBuilder(XSInteger.TYPE_NAME);
                    XSInteger attributeValue =
                        xsIntegerBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME, XSInteger.TYPE_NAME);
                    attributeValue.setValue(185912592);
                   
                    claim.addValue(attributeValue);

                } else if (ROLE_CLAIM.equals(requestClaim.getClaimType())) {
                    String requestedRole = (String)requestClaim.getValues().get(0);
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

       
        // Create and add a custom Attribute (Integer)
        XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
       
        XMLObjectBuilder<XSInteger> xsIntegerBuilder = builderFactory.getBuilder(XSInteger.TYPE_NAME);
        XSInteger attributeValue =
            xsIntegerBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME, XSInteger.TYPE_NAME);
        attributeValue.setValue(5);
       
        List<Object> attributeValues = new ArrayList<Object>();
        attributeValues.add(attributeValue);
        callbackHandler.setCustomAttributeValues(attributeValues);
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

       
        // Create and add a custom Attribute (Integer)
        XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
       
        XMLObjectBuilder<XSInteger> xsIntegerBuilder = builderFactory.getBuilder(XSInteger.TYPE_NAME);
        XSInteger attributeValue =
            xsIntegerBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME, XSInteger.TYPE_NAME);
        attributeValue.setValue(5);
       
        List<Object> attributeValues = new ArrayList<Object>();
        attributeValues.add(attributeValue);
        callbackHandler.setCustomAttributeValues(attributeValues);
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

        // no attributes
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        XSInteger xsiInteger = (XSInteger) xmlObject;

        if (elementContent != null) {
            xsiInteger.setValue(Integer.valueOf(elementContent.trim()));
        }
    }
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

        // no attributes
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        XSInteger xsiInteger = (XSInteger) xmlObject;

        if (xsiInteger.getValue() != null) {
            XMLHelper.appendTextContent(domElement, xsiInteger.getValue().toString());
        }
    }
View Full Code Here

Examples of org.opensaml.xml.schema.XSInteger

        // no attributes
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        XSInteger xsiInteger = (XSInteger) xmlObject;

        if (elementContent != null) {
            xsiInteger.setValue(Integer.valueOf(elementContent.trim()));
        }
    }
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.