public static enum Part.Type extends Enum<Part.Type>
Enum Constant and Description |
---|
AFTER |
BEFORE |
BETWEEN |
CONTAINING |
ENDING_WITH |
EXISTS |
FALSE |
GREATER_THAN |
GREATER_THAN_EQUAL |
IN |
IS_NOT_NULL |
IS_NULL |
LESS_THAN |
LESS_THAN_EQUAL |
LIKE |
NEAR |
NEGATING_SIMPLE_PROPERTY |
NOT_IN |
NOT_LIKE |
REGEX |
SIMPLE_PROPERTY |
STARTING_WITH |
TRUE |
WITHIN |
Modifier and Type | Field and Description |
---|---|
static Collection<String> |
ALL_KEYWORDS |
Modifier and Type | Method and Description |
---|---|
String |
extractProperty(String part)
Callback method to extract the actual propertyPath to be bound from the given part.
|
static Part.Type |
fromProperty(String rawProperty)
|
Collection<String> |
getKeywords()
Returns all keywords supported by the current
Part.Type . |
int |
getNumberOfArguments()
Returns the number of arguments the propertyPath binds.
|
protected boolean |
supports(String property)
Returns whether the the type supports the given raw property.
|
static Part.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Part.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Part.Type BETWEEN
public static final Part.Type IS_NOT_NULL
public static final Part.Type IS_NULL
public static final Part.Type LESS_THAN
public static final Part.Type LESS_THAN_EQUAL
public static final Part.Type GREATER_THAN
public static final Part.Type GREATER_THAN_EQUAL
public static final Part.Type BEFORE
public static final Part.Type AFTER
public static final Part.Type NOT_LIKE
public static final Part.Type LIKE
public static final Part.Type STARTING_WITH
public static final Part.Type ENDING_WITH
public static final Part.Type CONTAINING
public static final Part.Type NOT_IN
public static final Part.Type IN
public static final Part.Type NEAR
public static final Part.Type WITHIN
public static final Part.Type REGEX
public static final Part.Type EXISTS
public static final Part.Type TRUE
public static final Part.Type FALSE
public static final Part.Type NEGATING_SIMPLE_PROPERTY
public static final Part.Type SIMPLE_PROPERTY
public static final Collection<String> ALL_KEYWORDS
public static Part.Type[] values()
for (Part.Type c : Part.Type.values()) System.out.println(c);
public static Part.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static Part.Type fromProperty(String rawProperty)
Part.Type
of the Part
for the given raw propertyPath. This will try to detect e.g.
keywords contained in the raw propertyPath that trigger special query creation. Returns SIMPLE_PROPERTY
by default.rawProperty
- public Collection<String> getKeywords()
Part.Type
.protected boolean supports(String property)
property
- public int getNumberOfArguments()
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.