V - the generic type of the property value identified by this path.public class PathImpl<V> extends AbstractPathFactory implements Path<V>, AbstractArgument<V>
Path.| Modifier and Type | Field and Description |
|---|---|
private static Bean |
AGGREGATE_FUNCTION_BEAN |
protected static IntegerProperty |
AVG_PROPERTY
The property for the avg aggregate function to calculate the average value.
|
protected static IntegerProperty |
MAX_PROPERTY
The property for the max aggregate function to calculate the maximum value.
|
protected static IntegerProperty |
MIN_PROPERTY
The property for the min aggregate function to calculate the minimum value.
|
private PathImpl<?> |
parent |
private ReadableProperty<?> |
property |
private PathRoot<?> |
root |
private static char |
SEPARATOR
The character that separates the segments of a
path. |
protected static IntegerProperty |
SIZE_PROPERTY
The property for the size aggregate function on a
Collection. |
protected static IntegerProperty |
SUM_PROPERTY
The property for the size aggregate function on a
Collection. |
| Constructor and Description |
|---|
PathImpl(PathImpl<?> parent,
ReadableProperty<?> property)
The constructor.
|
PathImpl(PathRoot<?> root,
ReadableProperty<?> property)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
fail(String expectedType,
Bean bean) |
void |
format(Function<AttributeReadName,String> segmentFormatter,
StringBuilder buffer) |
PathImpl<?> |
getParent() |
String |
getParentName(boolean omitRootAlias) |
ReadableProperty<?> |
getProperty() |
PathRoot<?> |
getRoot() |
V |
getValue()
This method gets the value of this object.
|
Path<V> |
getValuePath() |
boolean |
isConstant() |
private static boolean |
isEmpty(String string) |
private boolean |
verify() |
private void |
verifyBeanProperty(Bean bean,
ReadableProperty<?> prop) |
to, to, to, to, to, to, to, toclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitto, to, to, to, to, to, to, toprivate static final Bean AGGREGATE_FUNCTION_BEAN
protected static final IntegerProperty SIZE_PROPERTY
Collection.protected static final IntegerProperty AVG_PROPERTY
protected static final IntegerProperty MAX_PROPERTY
protected static final IntegerProperty MIN_PROPERTY
protected static final IntegerProperty SUM_PROPERTY
Collection.private static char SEPARATOR
path.private final PathRoot<?> root
private final PathImpl<?> parent
private final ReadableProperty<?> property
public PathImpl(PathRoot<?> root, ReadableProperty<?> property)
root - - getRoot().property - - see getProperty().public PathImpl(PathImpl<?> parent, ReadableProperty<?> property)
parent - - getParent().property - - see getProperty().private boolean verify()
private void verifyBeanProperty(Bean bean, ReadableProperty<?> prop)
public PathRoot<?> getRoot()
public ReadableProperty<?> getProperty()
property.public PathImpl<?> getParent()
public void format(Function<AttributeReadName,String> segmentFormatter, StringBuilder buffer)
format in interface Path<V>segmentFormatter - a Function used to format a segment of this
Path to its String representation. This formatter will receive instances of PathRoot
or ReadableProperty.buffer - the StringBuilder where to append the resulting
String representation of this Path.Path.getName()private static boolean isEmpty(String string)
public String getParentName(boolean omitRootAlias)
omitRootAlias - - true if the root shall be omitted in case it is an
EntityAlias, false otherwise (the default for Path.getName()).name of parent or root.public Path<V> getValuePath()
getValuePath in interface Argument<V>Path of this builder. Will be null if value is NOT null and
vice versa.public V getValue()
AttributeReadValuepublic boolean isConstant()
isConstant in interface Argument<V>true if this is a literal value Argument, false otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.