|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forms.FieldDefinition
org.alfresco.repo.forms.AssociationFieldDefinition
public class AssociationFieldDefinition
An association field definition that can represent a source->target association or a target->source association.
Nested Class Summary | |
---|---|
static class |
AssociationFieldDefinition.Direction
|
Field Summary | |
---|---|
protected AssociationFieldDefinition.Direction |
endpointDirection
|
protected boolean |
endpointMandatory
|
protected boolean |
endpointMany
|
protected java.lang.String |
endpointType
|
Fields inherited from class org.alfresco.repo.forms.FieldDefinition |
---|
binding, dataKeyName, defaultValue, description, group, label, name, protectedField |
Constructor Summary | |
---|---|
AssociationFieldDefinition(java.lang.String name,
java.lang.String endpointType,
AssociationFieldDefinition.Direction endpointDirection)
Default constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.alfresco.repo.forms.FieldDefinition |
---|
getBinding, getDataKeyName, getDefaultValue, getDescription, getGroup, getLabel, getName, isProtectedField, setBinding, setDataKeyName, setDefaultValue, setDescription, setGroup, setLabel, setProtectedField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String endpointType
protected AssociationFieldDefinition.Direction endpointDirection
protected boolean endpointMandatory
protected boolean endpointMany
Constructor Detail |
---|
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 goingMethod Detail |
---|
public 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.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |