Examples of IntegerType


Examples of br.net.woodstock.rockframework.web.common.types.IntegerType

    super(format);
  }

  @Override
  protected IntegerType wrap(final Number n) {
    return new IntegerType(Long.valueOf(n.longValue()));
  }
View Full Code Here

Examples of br.net.woodstock.rockframework.web.types.IntegerType

    super(format);
  }

  @Override
  protected IntegerType wrap(final Number n) {
    return new IntegerType(Long.valueOf(n.longValue()));
  }
View Full Code Here

Examples of net.percederberg.mibble.type.IntegerType

     *
     * @param type           the MIB type
     * @param indent         the indentation to use
     */
    private void printConstraint(MibType type, String indent) {
        IntegerType     intType;
        BitSetType      bitType;
        StringType      strType;

        if (type instanceof IntegerType) {
            intType = (IntegerType) type;
            if (intType.hasSymbols()) {
                os.println(" {");
                printEnumeration(intType.getAllSymbols(),
                                 indent + "    ");
                os.println();
                os.print(indent);
                os.print("}");
            } else if (intType.hasConstraint()) {
                os.print(" (");
                os.print(intType.getConstraint());
                os.print(")");
            }
        } else if (type instanceof BitSetType) {
            bitType = (BitSetType) type;
            if (bitType.hasSymbols()) {
View Full Code Here

Examples of net.percederberg.mibble.type.IntegerType

     * @param node           the node being exited
     *
     * @return the node to add to the parse tree
     */
    protected Node exitIntegerType(Production node) {
        IntegerType  type;
        ArrayList    values;
        Object       obj;

        values = getChildValues(node);
        if (values.size() == 0) {
            type = new IntegerType();
        } else {
            obj = values.get(0);
            if (obj instanceof ArrayList) {
                type = new IntegerType((ArrayList) obj);
            } else {
                type = new IntegerType((Constraint) obj);
            }
        }
        node.addValue(type);
        return node;
    }
View Full Code Here

Examples of org.activiti.engine.impl.variable.IntegerType

      variableTypes.addType(new NullType());
      variableTypes.addType(new StringType(4000));
      variableTypes.addType(new LongStringType(4001));
      variableTypes.addType(new BooleanType());
      variableTypes.addType(new ShortType());
      variableTypes.addType(new IntegerType());
      variableTypes.addType(new LongType());
      variableTypes.addType(new DateType());
      variableTypes.addType(new DoubleType());
      variableTypes.addType(new UUIDType());
      variableTypes.addType(new ByteArrayType());
View Full Code Here

Examples of org.apache.cayenne.access.types.IntegerType

                .add(new ByteType(false))
                .add(new CharType(false, true))
                .add(new DateType())
                .add(new DoubleType())
                .add(new FloatType())
                .add(new IntegerType())
                .add(new LongType())
                .add(new ShortType(false))
                .add(new TimeType())
                .add(new TimestampType())
                .add(new UtilDateType())
View Full Code Here

Examples of org.apache.cayenne.access.types.IntegerType

                .add(new ByteType(false))
                .add(new CharType(false, true))
                .add(new DateType())
                .add(new DoubleType())
                .add(new FloatType())
                .add(new IntegerType())
                .add(new LongType())
                .add(new ShortType(false))
                .add(new TimeType())
                .add(new TimestampType())
                .add(new UtilDateType())
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

   *
   * @throws InappropriateTypeException
   */
  @Test(expected = IllegalArgumentException.class)
  public void testIntegerBadTypeDetection() {
    new IntegerType(parent, "test", "integer", "Not an int");
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

    int integerv = 1;
    float realv = Float.parseFloat("1.69");
    String textv = "TEXTCONTENT";
    BooleanType bool = new BooleanType(parent, "test", "booleen", boolv);
    DateType date = new DateType(parent, "test", "date", datev);
    IntegerType integer = new IntegerType(parent, "test", "integer",
        integerv);
    RealType real = new RealType(parent, "test", "real", realv);
    TextType text = new TextType(parent, "test", "text", textv);

    Assert.assertEquals(bool.getNamespace(), bool.getElement()
        .getNamespaceURI());
    Assert.assertEquals(bool.getPrefix() + ":" + bool.getPropertyName(),
        bool.getElement().getNodeName());
    Assert.assertEquals(bool.getQualifiedName(), bool.getElement()
        .getNodeName());
    Assert.assertEquals(boolv, bool.getValue());
    Assert.assertEquals(datev, date.getValue());
    Assert.assertEquals(integerv, integer.getValue());
    Assert.assertEquals(realv, real.getValue(), 0);
    Assert.assertEquals(textv, text.getStringValue());

  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

  @Test
  public void testObjectCreationFromJavaType() throws Exception {
    BooleanType bool = new BooleanType(parent, "test", "booleen", true);
    DateType date = new DateType(parent, "test", "date", Calendar
        .getInstance());
    IntegerType integer = new IntegerType(parent, "test", "integer", 1);
    RealType real = new RealType(parent, "test", "real", (float) 1.6);
    TextType text = new TextType(parent, "test", "text", "TEST");

    Element e = parent.getFuturOwner().createElement("TEST");
    parent.getFuturOwner().appendChild(e);
    e.appendChild(bool.getElement());
    e.appendChild(date.getElement());
    e.appendChild(integer.getElement());
    e.appendChild(real.getElement());
    e.appendChild(text.getElement());

    // XMLUtil.save(parent.getFuturOwner(), System.out, "UTF-8");
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.