本文整理匯總了Java中de.fuberlin.wiwiss.d2rq.expr.Expression.FALSE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Expression.FALSE屬性的具體用法?Java Expression.FALSE怎麽用?Java Expression.FALSE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類de.fuberlin.wiwiss.d2rq.expr.Expression
的用法示例。
在下文中一共展示了Expression.FALSE屬性的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: valueExpression
public Expression valueExpression(String value) {
if (value == null) {
return Expression.FALSE;
}
Matcher match = this.regex.matcher(value);
if (!match.matches()) {
return Expression.FALSE;
}
Collection<Expression> expressions = new ArrayList<Expression>(columns.size());
for (int i = 0; i < this.columns.size(); i++) {
Attribute attribute = columns.get(i);
ColumnFunction function = columnFunctions.get(i);
String attributeValue = function.decode(match.group(i + 1));
if (attributeValue == null) {
return Expression.FALSE;
}
expressions.add(Equality.createAttributeValue(attribute, attributeValue));
}
return Conjunction.create(expressions);
}
示例2: valueExpression
public Expression valueExpression(String value) {
if (value == null) {
return Expression.FALSE;
}
String[] parts = value.split(DELIMITER);
// Check if given bNode was created by this class map
if (parts.length != this.attributes.size() + 1
|| !this.classMapID.equals(parts[0])) {
return Expression.FALSE;
}
int i = 1; // parts[0] is classMap identifier
Collection<Expression> expressions = new ArrayList<Expression>(attributes.size());
for (Attribute attribute: attributes) {
expressions.add(Equality.createAttributeValue(attribute, parts[i]));
i++;
}
return Conjunction.create(expressions);
}
示例3: constraint
/**
* @return An expression that, if it holds for a result row, will ensure that
* any two identically-named node makers produce the same node
*/
public Expression constraint() {
Collection<Expression> expressions = new ArrayList<Expression>();
for (Var var: nodeSets.keySet()) {
NodeSetConstraintBuilder nodeSet = (NodeSetConstraintBuilder) nodeSets.get(var);
if (nodeSet.isEmpty()) {
return Expression.FALSE;
}
expressions.add(nodeSet.constraint());
}
return Conjunction.create(expressions);
}
示例4: valueExpression
public Expression valueExpression(String value) {
for (ValueConstraint constraint: constraints) {
if (!constraint.matches(value)) {
return Expression.FALSE;
}
}
String dbValue = this.translator.toDBValue(value);
if (dbValue == null) {
return Expression.FALSE;
}
return base.valueExpression(dbValue);
}
示例5: valueExpression
public Expression valueExpression(String value) {
if (value == null) {
return Expression.FALSE;
}
return Equality.createAttributeValue(attribute, value);
}
示例6: valueExpression
public Expression valueExpression(String value) {
return this.value.equals(value) ? Expression.TRUE : Expression.FALSE;
}
示例7: condition
public Expression condition() { return Expression.FALSE; }
示例8: softCondition
public Expression softCondition() { return Expression.FALSE; }
示例9: valueExpression
public Expression valueExpression(String value) {return Expression.FALSE;}