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()
RelationDescriptor
getRelationName
in interface RelationDescriptor<S extends Relatable,T extends Relatable>
public ValidationResult canRelate(S source, T target)
ValidatingRelationDescriptor
ValidationResult
, which indicates if two given entities may
form a relation, described by this RelationDescriptor
objectpublic 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>
Copyright © 2003–2020 Atlassian. All rights reserved.