congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
PropertyIsLike.getPattern
Code IndexAdd Tabnine to your IDE (free)

How to use
getPattern
method
in
org.deegree.filter.comparison.PropertyIsLike

Best Java code snippets using org.deegree.filter.comparison.PropertyIsLike.getPattern (Showing top 6 results out of 315)

origin: deegree/deegree3

private static void export( PropertyIsLike operator, XMLStreamWriter writer )
            throws XMLStreamException {
  writer.writeStartElement( FES_20_NS, "PropertyIsLike" );
  writer.writeAttribute( "wildCard", operator.getWildCard() );
  writer.writeAttribute( "singleChar", operator.getSingleChar() );
  writer.writeAttribute( "escapeChar", operator.getEscapeChar() );
  export( operator.getExpression(), writer );
  export( operator.getPattern(), writer );
  writer.writeEndElement();
}
origin: deegree/deegree3

/**
 * Translates the given {@link PropertyIsLike} into an {@link SQLOperation}.
 * <p>
 * NOTE: This method appends the generated argument inline, i.e. not using a <code>?</code>. This is because of a
 * problem that has been observed with PostgreSQL 8.0; the execution of the inline version is *much* faster.
 * </p>
 * 
 * @param op
 *            comparison operator to be translated, must not be <code>null</code>
 * @return corresponding SQL expression, never <code>null</code>
 * @throws UnmappableException
 *             if translation is not possible (usually due to unmappable property names)
 * @throws FilterEvaluationException
 *             if the expression contains invalid {@link ValueReference}s
 */
@Override
protected SQLOperation toProtoSQL( PropertyIsLike op )
            throws UnmappableException, FilterEvaluationException {
  Expression pattern = op.getPattern();
  if ( pattern instanceof Literal ) {
    String literal = ( (Literal<?>) pattern ).getValue().toString();
    return toProtoSql( op, literal );
  } else if ( pattern instanceof Function ) {
    String valueAsString = getStringValueFromFunction( pattern );
    return toProtoSql( op, valueAsString );
  }
  String msg = "Mapping of PropertyIsLike with non-literal or non-function comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
}
origin: deegree/deegree3

          throws UnmappableException, FilterEvaluationException {
if ( !( op.getPattern() instanceof Literal ) ) {
  String msg = "Mapping of PropertyIsLike with non-literal comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
String literal = ( (Literal) op.getPattern() ).getValue().toString();
String escape = "" + op.getEscapeChar();
String wildCard = "" + op.getWildCard();
origin: deegree/deegree3

  export( isLikeOperator.getPattern(), writer );
  break;
case PROPERTY_IS_NOT_EQUAL_TO:
origin: deegree/deegree3

          throws UnmappableException, FilterEvaluationException {
if ( !( op.getPattern() instanceof Literal ) ) {
  String msg = "Mapping of PropertyIsLike with non-literal comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
String literal = ( (Literal) op.getPattern() ).getValue().toString();
String escape = "" + op.getEscapeChar();
String wildCard = "" + op.getWildCard();
origin: deegree/deegree3

case PROPERTY_IS_LIKE:
  PropertyIsLike pil = (PropertyIsLike) op;
  return new PropertyIsLike( copy( pil.getExpression() ), copyExpression( pil.getPattern(), values ),
                pil.getWildCard(), pil.getSingleChar(), pil.getEscapeChar(),
                pil.isMatchCase(), pil.getMatchAction() );
org.deegree.filter.comparisonPropertyIsLikegetPattern

Popular methods of PropertyIsLike

  • getEscapeChar
  • getExpression
  • getSingleChar
  • getWildCard
  • isMatchCase
  • <init>
  • getMatchAction
  • getPrimitiveValues
  • matches
    Checks if a given String matches a pattern that is a sequence of: * standard characters * wildca

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JLabel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 PhpStorm 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