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 String |
endpointType |
binding, dataKeyName, defaultValue, description, group, label, name, protectedField
Constructor and Description |
---|
AssociationFieldDefinition(String name,
String endpointType,
AssociationFieldDefinition.Direction endpointDirection)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
AssociationFieldDefinition.Direction |
getEndpointDirection()
Returns the direction the association is going.
|
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
|
String |
toString() |
getBinding, getDataKeyName, getDefaultValue, getDescription, getGroup, getLabel, getName, isProtectedField, setBinding, setDataKeyName, setDefaultValue, setDescription, setGroup, setLabel, setProtectedField
protected String endpointType
protected AssociationFieldDefinition.Direction endpointDirection
protected boolean endpointMandatory
protected boolean endpointMany
public AssociationFieldDefinition(String name, 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 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)
endpointMany
- true if multiple targets can be selectedCopyright © 2005–2017 Alfresco Software. All rights reserved.