@ExperimentalSpi
public interface RelationDescriptor<S extends Relatable,T extends Relatable>
Please do implement ths interface directly, if you need to create your own relation please use
AbstractRelationDescriptor
or
NamedRelationDescriptor
Modifier and Type | Method and Description |
---|---|
ValidationResult |
canRelate(S source,
T target)
Returns
ValidationResult , which indicates if two given entities may
for a relation, described by this RelationDescriptor object |
String |
getRelationName()
Get relation name.
|
Class<S> |
getSourceClass()
Returns class of source entity of the relation.
|
Class<T> |
getTargetClass()
Returns class of target entity of the relation.
|
String getRelationName()
ValidationResult canRelate(S source, T target)
ValidationResult
, which indicates if two given entities may
for a relation, described by this RelationDescriptor
objectsource
- entitytarget
- entityClass<S> getSourceClass()
Relatable
Copyright © 2003–2016 Atlassian. All rights reserved.