當前位置: 首頁>>代碼示例>>Java>>正文


Java Expression.FALSE屬性代碼示例

本文整理匯總了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);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:20,代碼來源:Pattern.java

示例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);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:18,代碼來源:BlankNodeID.java

示例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);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:15,代碼來源:VariableConstraints.java

示例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);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:12,代碼來源:ValueDecorator.java

示例5: valueExpression

public Expression valueExpression(String value) {
	if (value == null) {
		return Expression.FALSE;
	}
	return Equality.createAttributeValue(attribute, value);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:6,代碼來源:Column.java

示例6: valueExpression

public Expression valueExpression(String value) {
	return this.value.equals(value) ? Expression.TRUE : Expression.FALSE;
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:3,代碼來源:ConstantValueMaker.java

示例7: condition

public Expression condition() { return Expression.FALSE; } 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:1,代碼來源:Relation.java

示例8: softCondition

public Expression softCondition() { return Expression.FALSE; } 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:1,代碼來源:Relation.java

示例9: valueExpression

public Expression valueExpression(String value) {return Expression.FALSE;} 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:1,代碼來源:ValueMaker.java


注:本文中的de.fuberlin.wiwiss.d2rq.expr.Expression.FALSE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。