|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IEntityRelation interface defines a link between two different entity descriptors. An IEntityRelation does allways consist of one or more IFieldRelation objects. The relation objects does combined with the descriptor objects form a traversable graph.
Method Summary | |
boolean |
canBeFullReference(IEntityDescriptor entityDescriptor)
Boolean help method that returns true if the provided IEntityDescriptor can act as a complete reference object according to the relation object. |
boolean |
canBeReference(IEntityDescriptor entityDescriptor)
Boolean help method that returns true if the provided IEntityDescriptor can act as a reference object according to the relation object. |
boolean |
canBeTarget(IEntityDescriptor entityDescriptor)
Boolean help method that returns true if the provided IEntityDescriptor can be a targeted entity type according to the relation object. |
java.lang.String |
getCodeName()
Returns an identifying name that can be used to address the relation in client software. |
int |
getFieldCount()
Access method that returns the number of IFieldRelation:s that defines the entity relation. |
IFieldRelation |
getFieldRelation(int index)
Access method that returns the indexed contained IFieldRelation. |
java.util.Iterator |
getFieldRelations()
Access method that returns an iterator for all contained IFieldRelation objects. |
java.lang.String |
getForwardDisplayName()
Returns a displayable name for the relation in the forward direction. |
IEntityDescriptor |
getReferenceEntityDescriptor()
Access method that returns the referenced IEntityDescriptor. |
java.util.Iterator |
getReferenceFieldDescriptors()
Access method that returns an iterator containing all the IFieldDescriptors from the reference/source descriptor. |
IEntityDescriptor |
getRelatedEntityDescriptor(IEntityDescriptor entityDescriptor)
Help method that returns that returns "the other" entity descriptor that link together by the relation object. |
Qualifier |
getRelationQualifier()
Returns a Qualifier that specifies the requirements to satisfy all field relations for the entity relation. |
java.lang.String |
getReverseDisplayName()
Returns a displayable name for the relation in the reverse direction. |
IEntityDescriptor |
getTargetEntityDescriptor()
Access method that returns the tageteted IEntityDescriptor. |
java.util.Iterator |
getTargetFieldDescriptors()
Access method that returns an iterator containing all the IFieldDescriptors from the targeted descriptor. |
boolean |
isRelationField(IFieldDescriptor fieldDescriptor)
Help method that returns true if the provided field descriptor exists as a part of one of the entity relations contained field relations. |
boolean |
isRelationNode(IEntityDescriptor entityDescriptor)
Help method that returns true if the provided entity descriptor is one of the fysical node descriptors of the relation objects. |
boolean |
isRequired()
Returns true if the relation is required. |
Method Detail |
public int getFieldCount()
public IFieldRelation getFieldRelation(int index)
public java.util.Iterator getFieldRelations()
public IEntityDescriptor getReferenceEntityDescriptor()
public java.util.Iterator getReferenceFieldDescriptors()
public IEntityDescriptor getTargetEntityDescriptor()
public java.util.Iterator getTargetFieldDescriptors()
public java.lang.String getCodeName()
public java.lang.String getForwardDisplayName()
public java.lang.String getReverseDisplayName()
public boolean isRelationNode(IEntityDescriptor entityDescriptor)
public boolean isRelationField(IFieldDescriptor fieldDescriptor)
public boolean isRequired()
public boolean canBeReference(IEntityDescriptor entityDescriptor)
public boolean canBeFullReference(IEntityDescriptor entityDescriptor)
public boolean canBeTarget(IEntityDescriptor entityDescriptor)
public IEntityDescriptor getRelatedEntityDescriptor(IEntityDescriptor entityDescriptor)
public Qualifier getRelationQualifier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |