Package org.geomajas.layer.feature.attribute

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


        break;
      case DOUBLE:
        result = new DoubleAttribute((Double) value);
        break;
      case CURRENCY:
        result = new CurrencyAttribute((String) value);
        break;
      case STRING:
        result = new StringAttribute(value == null ? null : value.toString());
        break;
      case DATE:
View Full Code Here


      case FLOAT:
        return new FloatAttribute((Float) convertToClass(value, Float.class));
      case DOUBLE:
        return new DoubleAttribute((Double) convertToClass(value, Double.class));
      case CURRENCY:
        return new CurrencyAttribute((String) convertToClass(value, String.class));
      case STRING:
        return new StringAttribute(value == null ? null : value.toString());
      case DATE:
        return new DateAttribute((Date) value);
      case URL:
View Full Code Here

        break;
      case DOUBLE:
        attribute = new DoubleAttribute();
        break;
      case CURRENCY:
        attribute = new CurrencyAttribute();
        break;
      case STRING:
        attribute = new StringAttribute();
        break;
      case DATE:
View Full Code Here

  private PrimitiveAttribute<?> createPrimitiveAttribute(PrimitiveAttributeInfo primInfo) {
    switch (primInfo.getType()) {
      case BOOLEAN:
        return new BooleanAttribute();
      case CURRENCY:
        return new CurrencyAttribute();
      case DATE:
        return new DateAttribute();
      case DOUBLE:
        return new DoubleAttribute();
      case FLOAT:
View Full Code Here

    }

    AttributeInfoPair(String name, String label, String value, PrimitiveType type) {
      switch (type) {
        case CURRENCY:
          attribute = new CurrencyAttribute(value);
          break;
        case STRING:
          attribute = new StringAttribute(value);
          break;
        case URL:
View Full Code Here

          case FLOAT:
            return new FloatAttribute();
          case DOUBLE:
            return new DoubleAttribute();
          case CURRENCY:
            return new CurrencyAttribute();
          case STRING:
            return new StringAttribute();
          case DATE:
            return new DateAttribute();
          case URL:
View Full Code Here

TOP

Related Classes of org.geomajas.layer.feature.attribute.CurrencyAttribute

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.