Tabnine Logo
LowerCase.getOperand
Code IndexAdd Tabnine to your IDE (free)

How to use
getOperand
method
in
javax.jcr.query.qom.LowerCase

Best Java code snippets using javax.jcr.query.qom.LowerCase.getOperand (Showing top 16 results out of 315)

origin: ModeShape/modeshape

  @Override
  public Object apply(LowerCase op, Map<String, Object> variables) {
    return EsIndexColumn.LOWERCASE_PREFIX + 
        ((String)operand(op.getOperand()).apply(op.getOperand(), variables));
  }
};
origin: org.apache.jackrabbit/jackrabbit-core

  public Transform(DynamicOperand operand) {
    // Check the transformation type
    if (operand instanceof UpperCase) {
      this.transform = TRANSFORM_UPPER_CASE;
    } else if (operand instanceof LowerCase) {
      this.transform = TRANSFORM_LOWER_CASE;
    } else {
      this.transform = TRANSFORM_NONE;
    }
    // Unwrap any nested transformations
    while (true) {
      if (operand instanceof UpperCase) {
        operand = ((UpperCase) operand).getOperand();
      } else if (operand instanceof LowerCase) {
        operand = ((LowerCase) operand).getOperand();
      } else {
        break;
      }
    }
    this.operand = operand;
  }
}
origin: apache/jackrabbit

  public Transform(DynamicOperand operand) {
    // Check the transformation type
    if (operand instanceof UpperCase) {
      this.transform = TRANSFORM_UPPER_CASE;
    } else if (operand instanceof LowerCase) {
      this.transform = TRANSFORM_LOWER_CASE;
    } else {
      this.transform = TRANSFORM_NONE;
    }
    // Unwrap any nested transformations
    while (true) {
      if (operand instanceof UpperCase) {
        operand = ((UpperCase) operand).getOperand();
      } else if (operand instanceof LowerCase) {
        operand = ((LowerCase) operand).getOperand();
      } else {
        break;
      }
    }
    this.operand = operand;
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: apache/jackrabbit

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: apache/jackrabbit

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit

/**
 * Test case for {@link QueryObjectModelFactory#lowerCase(DynamicOperand)}
 */
public void testLowerCase() throws RepositoryException {
  PropertyValue propValue = qf.propertyValue(SELECTOR_NAME1, propertyName1);
  LowerCase lower = qf.lowerCase(propValue);
  assertTrue("Not a property value operand", lower.getOperand() instanceof PropertyValue);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit-oak

@Test
public void lowerCase() throws RepositoryException {
  PropertyValue p = f.propertyValue("selectorName", "propertyName");
  Length length = f.length(p);
  LowerCase l = f.lowerCase(length);
  assertEquals(length, l.getOperand());
  assertEquals("LOWER(LENGTH([selectorName].[propertyName]))", l.toString());
}
origin: org.apache.jackrabbit/jackrabbit-core

} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
  return getSelectorName(lower.getOperand());
} else if (operand instanceof NodeLocalName) {
  NodeLocalName local = (NodeLocalName) operand;
origin: apache/jackrabbit

} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
  return getSelectorName(lower.getOperand());
} else if (operand instanceof NodeLocalName) {
  NodeLocalName local = (NodeLocalName) operand;
javax.jcr.query.qomLowerCasegetOperand

Javadoc

Gets the operand whose value is converted to a lower-case string.

Popular methods of LowerCase

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • setRequestProperty (URLConnection)
    • notifyDataSetChanged (ArrayAdapter)
    • startActivity (Activity)
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • FileWriter (java.io)
      A specialized Writer that writes to a file in the file system. All write requests made by calling me
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • Map (java.util)
      A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
    • 21 Best IntelliJ Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now