本文整理匯總了Java中com.hp.hpl.jena.rdf.model.Property.equals方法的典型用法代碼示例。如果您正苦於以下問題:Java Property.equals方法的具體用法?Java Property.equals怎麽用?Java Property.equals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.hp.hpl.jena.rdf.model.Property
的用法示例。
在下文中一共展示了Property.equals方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: visitComponentProperty
import com.hp.hpl.jena.rdf.model.Property; //導入方法依賴的package包/類
@Override
public void visitComponentProperty(Property property, Resource resource,
ComponentType... types) {
if (resource == null) return;
if (property == null) {
out.printResourceStart(resource);
super.visitComponentProperty(property, resource, types);
out.printResourceEnd();
} else if (resource.isAnon()) {
boolean isRefObjectMap = property.equals(RR.objectMap) &&
mapping.referencingObjectMaps().has(resource);
out.printPropertyStart(property,
COMPACT_PROPERTIES.contains(property) && !isRefObjectMap);
super.visitComponentProperty(property, resource, types);
out.printPropertyEnd();
} else {
out.printProperty(property, resource);
}
}
示例2: hasPrimarySpec
import com.hp.hpl.jena.rdf.model.Property; //導入方法依賴的package包/類
private boolean hasPrimarySpec(ResourceMap map, Property property) {
if (property.equals(D2RQ.bNodeIdColumns)) return !map.getBNodeIdColumnsParsed().isEmpty();
if (property.equals(D2RQ.uriColumn)) return map.getURIColumn() != null;
if (property.equals(D2RQ.uriPattern)) return map.getURIPattern() != null;
if (property.equals(D2RQ.uriSqlExpression)) return map.getUriSQLExpression() != null;
if (property.equals(D2RQ.column)) return ((PropertyBridge) map).getColumn() != null;
if (property.equals(D2RQ.pattern)) return ((PropertyBridge) map).getPattern() != null;
if (property.equals(D2RQ.sqlExpression)) return ((PropertyBridge) map).getSQLExpression() != null;
if (property.equals(D2RQ.refersToClassMap)) return ((PropertyBridge) map).getRefersToClassMap() != null;
if (property.equals(D2RQ.constantValue)) return map.getConstantValue() != null;
throw new IllegalArgumentException("Not a primary spec: " + property);
}
示例3: hasPrimarySpec
import com.hp.hpl.jena.rdf.model.Property; //導入方法依賴的package包/類
private boolean hasPrimarySpec(Property property) {
if (property.equals(D2RQ.bNodeIdColumns)) return this.bNodeIdColumns != null;
if (property.equals(D2RQ.uriColumn)) return this.uriColumn != null;
if (property.equals(D2RQ.uriPattern)) return this.uriPattern != null;
if (property.equals(D2RQ.column)) return this.column != null;
if (property.equals(D2RQ.pattern)) return this.pattern != null;
if (property.equals(D2RQ.sqlExpression)) return this.sqlExpression != null;
if (property.equals(D2RQ.uriSqlExpression)) return this.uriSqlExpression != null;
if (property.equals(D2RQ.refersToClassMap)) return this.refersToClassMap != null;
if (property.equals(D2RQ.constantValue)) return this.constantValue != null;
throw new D2RQException("No primary spec: " + property);
}