@Api(allMethods=true) public class OneToManyAttribute extends AssociationAttribute<List<AssociationValue>>
Definition of the one-to-many association attribute. This type of attribute is not a simple primitive attribute with
a single value, but instead holds the values of an entire list of beans. This list of bean values has been defined in
the form of a list of AssociationValue objects.
| Constructor and Description |
|---|
OneToManyAttribute()
Create attribute without value (needed for GWT).
|
OneToManyAttribute(List<AssociationValue> value)
Create attribute with specified value.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Create a clone of this attribute object.
|
AssociationType |
getType() |
List<AssociationValue> |
getValue()
Get the value for this attribute.
|
boolean |
isEmpty()
Does the attribute have a value?
|
void |
setValue(List<AssociationValue> value)
Set the association value.
|
String |
toString()
Returns a string representation of this attributes value of the form
[{id=1, attr1=a}, {id=2, attr1=b}]. |
isEditable, isPrimitive, setEditablepublic OneToManyAttribute()
public OneToManyAttribute(List<AssociationValue> value)
value - value for attributepublic AssociationType getType()
getType in class AssociationAttribute<List<AssociationValue>>public List<AssociationValue> getValue()
public boolean isEmpty()
public void setValue(List<AssociationValue> value)
setValue in class AssociationAttribute<List<AssociationValue>>value - associated valuepublic Object clone()
clone in interface Attribute<List<AssociationValue>>clone in class AssociationAttribute<List<AssociationValue>>public String toString()
[{id=1, attr1=a}, {id=2, attr1=b}].toString in class ObjectAssociationValue.toString()Copyright © 2015 Geosparc. All Rights Reserved.