@Api(allMethods=true) public class ManyToOneAttribute extends AssociationAttribute<AssociationValue>
Definition of the many-to-one association attribute. This type of attribute is not a simple primitive attribute with
a single value, but instead holds the value of an entire bean. This value has been defined in the form of a
AssociationValue.
| Constructor and Description |
|---|
ManyToOneAttribute()
Create attribute without value (needed for GWT).
|
ManyToOneAttribute(AssociationValue value)
Create attribute with specified value.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Create a clone of this attribute object.
|
AssociationType |
getType() |
AssociationValue |
getValue()
Get the value for this attribute.
|
boolean |
isEmpty()
Does the attribute have a value?
|
void |
setBooleanAttribute(String name,
Boolean value)
Sets the specified boolean attribute to the specified value.
|
void |
setCurrencyAttribute(String name,
String value)
Sets the specified currency attribute to the specified value.
|
void |
setDateAttribute(String name,
Date value)
Sets the specified date attribute to the specified value.
|
void |
setDoubleAttribute(String name,
Double value)
Sets the specified double attribute to the specified value.
|
void |
setFloatAttribute(String name,
Float value)
Sets the specified float attribute to the specified value.
|
void |
setImageUrlAttribute(String name,
String value)
Sets the specified image URL attribute to the specified value.
|
void |
setIntegerAttribute(String name,
Integer value)
Sets the specified integer attribute to the specified value.
|
void |
setLongAttribute(String name,
Long value)
Sets the specified long attribute to the specified value.
|
void |
setShortAttribute(String name,
Short value)
Sets the specified short attribute to the specified value.
|
void |
setStringAttribute(String name,
String value)
Sets the specified string attribute to the specified value.
|
void |
setUrlAttribute(String name,
String value)
Sets the specified URL attribute to the specified value.
|
void |
setValue(AssociationValue value)
Set the association value.
|
String |
toString()
Returns a string representation of this attribute's value.
|
isEditable, isPrimitive, setEditablepublic ManyToOneAttribute()
public ManyToOneAttribute(AssociationValue value)
value - value for attributepublic AssociationType getType()
getType in class AssociationAttribute<AssociationValue>public AssociationValue getValue()
public boolean isEmpty()
public void setValue(AssociationValue value)
setValue in class AssociationAttribute<AssociationValue>value - associated valuepublic Object clone()
clone in interface Attribute<AssociationValue>clone in class AssociationAttribute<AssociationValue>public String toString()
toString in class ObjectAssociationValue.toString()public void setBooleanAttribute(String name, Boolean value)
name - name of the attributevalue - value of the attributepublic void setCurrencyAttribute(String name, String value)
name - name of the attributevalue - value of the attributepublic void setDateAttribute(String name, Date value)
name - name of the attributevalue - value of the attributepublic void setDoubleAttribute(String name, Double value)
name - name of the attributevalue - value of the attributepublic void setFloatAttribute(String name, Float value)
name - name of the attributevalue - value of the attributepublic void setImageUrlAttribute(String name, String value)
name - name of the attributevalue - value of the attributepublic void setIntegerAttribute(String name, Integer value)
name - name of the attributevalue - value of the attributepublic void setLongAttribute(String name, Long value)
name - name of the attributevalue - value of the attributepublic void setShortAttribute(String name, Short value)
name - name of the attributevalue - value of the attributepublic void setStringAttribute(String name, String value)
name - name of the attributevalue - value of the attributeCopyright © 2015 Geosparc. All Rights Reserved.