Package org.geomajas.layer.feature.attribute

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


    featureInfo.setIdentifier(new PrimitiveAttributeInfo("id", "id", PrimitiveType.LONG));
    featureInfo.setAttributes(Collections.singletonList((AttributeInfo) textAttr));
    many.setFeature(featureInfo);
    Attribute<?> attr = converter.toDto(new Bean[] { new Bean("t1",1L), new Bean("t2",2L) }, many);
    Assert.assertTrue(attr instanceof AssociationAttribute);
    AssociationAttribute assoc = (AssociationAttribute)attr;
    List<AssociationValue> value = (List<AssociationValue>)assoc.getValue();
    value.get(0).getAttributes();
  }
View Full Code Here

TOP

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

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.