}
public ASelectableCondition createCondition(final Object selectedItem, final NamedObject simpleCond,
final Object value, final boolean matchCase,
final boolean matchApproximately) {
final NamedObject namedObject = (NamedObject) selectedItem;
if (namedObject.objectEquals(FILTER_LINK)) {
if (simpleCond.objectEquals(ConditionFactory.FILTER_IS_EQUAL_TO)) {
return new HyperLinkEqualsCondition((String) value, matchCase, matchApproximately);
}
if (simpleCond.objectEquals(ConditionFactory.FILTER_CONTAINS)) {
return new HyperLinkContainsCondition((String) value, matchCase, matchApproximately);
}
if (simpleCond.objectEquals(ConditionFactory.FILTER_EXIST)) {
return new HyperLinkExistsCondition();
}
return null;
}
if (namedObject.objectEquals(CONNECTOR_LABEL)) {
if (simpleCond.objectEquals(ConditionFactory.FILTER_IS_EQUAL_TO)) {
return new ConnectorLabelEqualsCondition((String) value, matchCase, matchApproximately);
}
if (simpleCond.objectEquals(ConditionFactory.FILTER_CONTAINS)) {
return new ConnectorLabelContainsCondition((String) value, matchCase, matchApproximately);
}
return null;
}
if (namedObject.objectEquals(CONNECTOR)) {
if (simpleCond.objectEquals(ConditionFactory.FILTER_EXIST)) {
return new ConnectorExistsCondition();
}
}
return null;