Package org.geomajas.layer.feature.attribute

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


              } else {
                record.setAttribute(attributeInfo.getName(), "");
              }
              break;
            case ONE_TO_MANY:
              OneToManyAttribute oneToManyAttribute = (OneToManyAttribute) attr;
              List<String> values = new ArrayList<String>();
              for (AssociationValue assoc : oneToManyAttribute.getValue()) {
                Object o = assoc.getAllAttributes().get(displayName).getValue();
                if (o != null) {
                  values.add(o.toString());
                }
              }
View Full Code Here


              } else {
                record.setAttribute(attributeInfo.getName(), "");
              }
              break;
            case ONE_TO_MANY:
              OneToManyAttribute oneToManyAttribute = (OneToManyAttribute) attr;
              List<String> values = new ArrayList<String>();
              for (AssociationValue assoc : oneToManyAttribute.getValue()) {
                Object o = assoc.getAllAttributes().get(displayName).getValue();
                if (o != null) {
                  values.add(o.toString());
                }
              }
View Full Code Here

        switch (assocInfo.getType()) {
          case MANY_TO_ONE:
            attributes.put(assocInfo.getName(), new ManyToOneAttribute());
            break;
          case ONE_TO_MANY:
            OneToManyAttribute oneToMany = new OneToManyAttribute();
            oneToMany.setValue(new ArrayList<AssociationValue>());
            attributes.put(assocInfo.getName(), oneToMany);
            break;

        }
      }
View Full Code Here

TOP

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

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.