本文整理汇总了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;}