Examples of IntegerAttribute


Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

      date = new Date();
    }
    Map<String, PrimitiveAttribute<?>> attributes = new HashMap<String, PrimitiveAttribute<?>>();
    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("manyToOne-1"));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(true));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(100));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(100.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(100.0));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));

    return new ManyToOneAttribute(new AssociationValue(new LongAttribute(id), attributes));
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

  @SuppressWarnings("rawtypes")
  public void setAttributes() throws Exception {
    Date date = new Date();
    Map<String, Attribute> attributes = new HashMap<String, Attribute>();
    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(5));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(5.0));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(false));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));
    featureModel.setAttributes(feature1, attributes);
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

    Assert.assertNull(featureModel.getAttribute(feature1, PARAM_DOUBLE_ATTR).getValue());
    Assert.assertNull(featureModel.getAttribute(feature1, PARAM_BOOLEAN_ATTR).getValue());
    Assert.assertNull(featureModel.getAttribute(feature1, PARAM_DATE_ATTR).getValue());

    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(5));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(5.0));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(false));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));
    featureModel.setAttributes(feature1, attributes);
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

  @Test
  public void setAttributes() throws Exception {
    Date date = new Date();
    Map<String, Attribute> attributes = new HashMap<String, Attribute>();
    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(5));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(5.0));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(false));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));
    featureModel.setAttributes(feature1, attributes);
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

  public static ManyToOneAttribute getDefaultAttributeInstance1(Long id) {
     Map<String, PrimitiveAttribute<?>> attributes = new HashMap<String, PrimitiveAttribute<?>>();
    attributes.put("textAttr", new StringAttribute("manyToOne-1"));
    attributes.put("booleanAttr", new BooleanAttribute(true));
    attributes.put("intAttr", new IntegerAttribute(100));
    attributes.put("floatAttr", new FloatAttribute(100.0f));
    attributes.put("doubleAttr", new DoubleAttribute(100.0));
   
    DateFormat format = new SimpleDateFormat("dd/MM/yyyy");
    Date date;
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

        break;
      case SHORT:
        attribute = new ShortAttribute();
        break;
      case INTEGER:
        attribute = new IntegerAttribute();
        break;
      case LONG:
        attribute = new LongAttribute();
        break;
      case FLOAT:
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

      case FLOAT:
        return new FloatAttribute();
      case IMGURL:
        return new ImageUrlAttribute();
      case INTEGER:
        return new IntegerAttribute();
      case LONG:
        return new LongAttribute();
      case SHORT:
        return new ShortAttribute();
      case STRING:
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

      this.attribute = new ShortAttribute(value);
      this.info = new PrimitiveAttributeInfo(name, label, PrimitiveType.SHORT);
    }

    AttributeInfoPair(String name, String label, int value) {
      this.attribute = new IntegerAttribute(value);
      this.info = new PrimitiveAttributeInfo(name, label, PrimitiveType.INTEGER);
    }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.IntegerAttribute

          case BOOLEAN:
            return new BooleanAttribute();
          case SHORT:
            return new ShortAttribute();
          case INTEGER:
            return new IntegerAttribute();
          case LONG:
            return new LongAttribute();
          case FLOAT:
            return new FloatAttribute();
          case DOUBLE:
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

            for (int index = 0; index < argValues.length; index++) {
                long arg = ((IntegerAttribute) argValues[index]).getValue();
                sum += arg;
            }
           
            result = new EvaluationResult(new IntegerAttribute(sum));
            break;
        }
        case ID_DOUBLE_ADD: {
            double sum = 0;
            for (int index = 0; index < argValues.length; index++) {
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.