public class DefaultValidatingRelationDescriptor<S extends Relatable,T extends Relatable> extends Object implements ValidatingRelationDescriptor<S,T>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
DefaultValidatingRelationDescriptor(RelationDescriptor relationDescriptor)  | 
| 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 | 
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. 
 | 
protected DefaultValidatingRelationDescriptor(RelationDescriptor relationDescriptor)
public String getRelationName()
RelationDescriptorgetRelationName in interface RelationDescriptor<S extends Relatable,T extends Relatable>public ValidationResult canRelate(S source, T target)
ValidatingRelationDescriptorValidationResult, which indicates if two given entities may
 form a relation, described by this RelationDescriptor objectpublic Class<S> getSourceClass()
RelationDescriptorRelatablegetSourceClass in interface RelationDescriptor<S extends Relatable,T extends Relatable>public Class<T> getTargetClass()
RelationDescriptorRelatablegetTargetClass in interface RelationDescriptor<S extends Relatable,T extends Relatable>Copyright © 2003–2022 Atlassian. All rights reserved.