public class AssociationFieldDefinition extends FieldDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
AssociationFieldDefinition.Direction |
| Modifier and Type | Field and Description |
|---|---|
protected AssociationFieldDefinition.Direction |
endpointDirection |
protected boolean |
endpointMandatory |
protected boolean |
endpointMany |
protected java.lang.String |
endpointType |
binding, dataKeyName, defaultValue, description, group, label, name, protectedField| Constructor and Description |
|---|
AssociationFieldDefinition(java.lang.String name,
java.lang.String endpointType,
AssociationFieldDefinition.Direction endpointDirection)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
AssociationFieldDefinition.Direction |
getEndpointDirection()
Returns the direction the association is going.
|
java.lang.String |
getEndpointType()
Returns the type of the target of the association
|
boolean |
isEndpointMandatory()
Determines whether the target is mandatory
|
boolean |
isEndpointMany()
Determines if multiple targets can be selected
|
void |
setEndpointMandatory(boolean endpointMandatory)
Sets whether the target is mandatory
|
void |
setEndpointMany(boolean endpointMany)
Sets whether multiple targets can be selected
|
java.lang.String |
toString() |
getBinding, getDataKeyName, getDefaultValue, getDescription, getGroup, getLabel, getName, isProtectedField, setBinding, setDataKeyName, setDefaultValue, setDescription, setGroup, setLabel, setProtectedFieldprotected java.lang.String endpointType
protected AssociationFieldDefinition.Direction endpointDirection
protected boolean endpointMandatory
protected boolean endpointMany
public AssociationFieldDefinition(java.lang.String name,
java.lang.String endpointType,
AssociationFieldDefinition.Direction endpointDirection)
name - The name of the associationendpointType - The type of the item at the end of the associationendpointDirection - The direction the association is goingpublic java.lang.String getEndpointType()
public AssociationFieldDefinition.Direction getEndpointDirection()
Direction.TARGET means the endpoint is the target
and the field is the source.
Direction.SOURCE means the endpoint is the source
and the field is the target.
public boolean isEndpointMandatory()
public void setEndpointMandatory(boolean endpointMandatory)
endpointMandatory - true if a target has to be selectedpublic boolean isEndpointMany()
public void setEndpointMany(boolean endpointMany)
targetMany - true if multiple targets can be selectedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.