org.vertexium.Element.getPropertyValue()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(618)

本文整理了Java中org.vertexium.Element.getPropertyValue()方法的一些代码示例,展示了Element.getPropertyValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getPropertyValue()方法的具体详情如下:
包路径:org.vertexium.Element
类名称:Element
方法名:getPropertyValue

Element.getPropertyValue介绍

暂无

代码示例

代码示例来源:origin: org.visallo/visallo-core

  1. public final TRaw getPropertyValue(Element element, String propertyKey) {
  2. Object value = element != null ? element.getPropertyValue(propertyKey, getPropertyName()) : null;
  3. return value != null ? getRawConverter().apply(value) : null;
  4. }

代码示例来源:origin: org.visallo/visallo-core

  1. public final TRaw getPropertyValue(Element element) {
  2. Object value = element != null ? element.getPropertyValue(getPropertyName()) : null;
  3. return value != null ? getRawConverter().apply(value) : null;
  4. }

代码示例来源:origin: org.visallo/visallo-core

  1. public final TRaw getPropertyValueRequired(Element element) {
  2. checkNotNull(element, "Element cannot be null");
  3. Object value = element.getPropertyValue(getPropertyName());
  4. checkNotNull(value, "Property value of property " + getPropertyName() + " cannot be null");
  5. return getRawConverter().apply(value);
  6. }

代码示例来源:origin: org.vertexium/vertexium-cypher

  1. private boolean propertyMapMatch(
  2. VertexiumCypherQueryContext ctx,
  3. Element element,
  4. ListMultimap<String, CypherAstBase> propertiesMap,
  5. ExpressionScope scope
  6. ) {
  7. for (Map.Entry<String, CypherAstBase> propertyEntry : propertiesMap.entries()) {
  8. Object propertyValue = element.getPropertyValue(propertyEntry.getKey());
  9. Object expressionValue = ctx.getExpressionExecutor().executeExpression(ctx, propertyEntry.getValue(), scope);
  10. if (!ObjectUtils.equals(propertyValue, expressionValue)) {
  11. return false;
  12. }
  13. }
  14. return true;
  15. }

代码示例来源:origin: visallo/vertexium

  1. private boolean propertyMapMatch(
  2. VertexiumCypherQueryContext ctx,
  3. Element element,
  4. ListMultimap<String, CypherAstBase> propertiesMap,
  5. ExpressionScope scope
  6. ) {
  7. for (Map.Entry<String, CypherAstBase> propertyEntry : propertiesMap.entries()) {
  8. Object propertyValue = element.getPropertyValue(propertyEntry.getKey());
  9. Object expressionValue = ctx.getExpressionExecutor().executeExpression(ctx, propertyEntry.getValue(), scope);
  10. if (!ObjectUtils.equals(propertyValue, expressionValue)) {
  11. return false;
  12. }
  13. }
  14. return true;
  15. }

代码示例来源:origin: visallo/vertexium

  1. if (indexObj instanceof String) {
  2. String propertyName = (String) indexObj;
  3. return element.getPropertyValue(propertyName);

代码示例来源:origin: org.vertexium/vertexium-cypher

  1. if (indexObj instanceof String) {
  2. String propertyName = (String) indexObj;
  3. return element.getPropertyValue(propertyName);

代码示例来源:origin: org.vertexium/vertexium-cypher

  1. return element.getPropertyValue(ctx.normalizePropertyName(expression.getProperty()));

代码示例来源:origin: visallo/vertexium

  1. return element.getPropertyValue(ctx.normalizePropertyName(expression.getProperty()));

相关文章