@ExperimentalSpi public abstract class AbstractRelationDescriptor<S extends Relatable,T extends Relatable> extends Object implements RelationDescriptor<S,T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractRelationDescriptor(String relationName) |
protected |
AbstractRelationDescriptor(String relationName,
Class<S> sourceClass,
Class<T> targetClass) |
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 |
protected Class |
getGenericTypeArgs(int i) |
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 AbstractRelationDescriptor(String relationName)
public Class<S> getSourceClass()
RelationDescriptor
Relatable
getSourceClass
in interface RelationDescriptor<S extends Relatable,T extends Relatable>
public Class<T> getTargetClass()
RelationDescriptor
Relatable
getTargetClass
in interface RelationDescriptor<S extends Relatable,T extends Relatable>
public String getRelationName()
RelationDescriptor
getRelationName
in interface RelationDescriptor<S extends Relatable,T extends Relatable>
public ValidationResult canRelate(S source, T target)
RelationDescriptor
ValidationResult
, which indicates if two given entities may
for a relation, described by this RelationDescriptor
objectprotected Class getGenericTypeArgs(int i)
Copyright © 2003–2016 Atlassian. All rights reserved.