|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.align.model.condition.impl.BindingCondition
@Immutable public class BindingCondition
Type condition that checks its binding and element type
Constructor Summary | |
---|---|
BindingCondition(Class<?> compatibleClass,
boolean allowConversion,
boolean allowCollection)
Create a binding condition |
Method Summary | |
---|---|
boolean |
accept(Type entity)
Determines if the given entity matches the constraint |
protected boolean |
isCompatibleClass(Class<?> binding,
boolean to)
Check if the given binding is compatible to the configured compatible class |
static boolean |
isCompatibleClass(Class<?> binding,
boolean to,
Class<?> compatibleClass,
boolean allowConversion)
Check if the given binding is compatible to the given compatible class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BindingCondition(Class<?> compatibleClass, boolean allowConversion, boolean allowCollection)
compatibleClass
- the class the binding should be compatible toallowConversion
- specifies if a binding is classified as compatible
if conversion to the compatible class is possibleallowCollection
- specifies if a binding is classified as compatible
if it is a collection of the compatible classMethod Detail |
---|
public boolean accept(Type entity)
EntityCondition
accept
in interface EntityCondition<Type>
entity
- the entity
EntityCondition.accept(Entity)
protected boolean isCompatibleClass(Class<?> binding, boolean to)
binding
- the bindingto
- if a value of compatibleClass
shall be assigned to the
binding or vice versa
public static boolean isCompatibleClass(Class<?> binding, boolean to, Class<?> compatibleClass, boolean allowConversion)
binding
- the bindingto
- if a value of the compatible class shall be assigned to the
binding or vice versacompatibleClass
- the compatible classallowConversion
- if conversion is allowed
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |