Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neo4j Community
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.neo4j.graphmatching.filter
Class RegexPattern

    java.lang.Object
      org.neo4j.graphmatching.filter.AbstractFilterExpression
          org.neo4j.graphmatching.filter.RegexPattern

All Implemented Interfaces:
  FilterExpression

    public class RegexPattern

extends AbstractFilterExpression

A regex pattern with or without options, f.ex. "i" means case-insensitive.

Constructor Summary
`RegexPattern(String label, String property, String pattern, String options)` Constructs a new regex pattern for filtering.

Method Summary
`boolean` | `matches(FilterValueGetter valueGetter)` Matches a value from a `valueGetter` and returns whether or not there was a match.

Methods inherited from class org.neo4j.graphmatching.filter.AbstractFilterExpression
`getLabel, getProperty`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RegexPattern

    public RegexPattern(String label,
                        String property,
                        String pattern,
                        String options)

  Constructs a new regex pattern for filtering.

  Parameters:
    `label` - the `PatternNode` label.
    `property` - the property key to filter in.
    `pattern` - the pattern which the value should match.
    `options` - options for regex matching.

Method Detail

### matches

    public boolean matches(FilterValueGetter valueGetter)

  Description copied from interface: `FilterExpression`
  Matches a value from a `valueGetter` and returns whether or not there was a match.

  Parameters:
    `valueGetter` - the getter which fetches the value to match.
  Returns:
    whether or not the value from `valueGetter` matches the criterias found in this expression.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neo4j Community
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.