@ExperimentalSpi public interface ValidatingRelationDescriptor<S extends Relatable,T extends Relatable> extends RelationDescriptor<S,T>
RelationDescriptor
which provides a method to perform validation on descriptor operations.Modifier and Type | Method and Description |
---|---|
ValidationResult |
canRelate(S source,
T target)
Returns
ValidationResult , which indicates if two given entities may
form a relation, described by this RelationDescriptor object |
getRelationName, getSourceClass, getTargetClass
ValidationResult canRelate(S source, T target)
ValidationResult
, which indicates if two given entities may
form a relation, described by this RelationDescriptor
objectsource
- entitytarget
- entityCopyright © 2003–2016 Atlassian. All rights reserved.