T
- Path typepublic class DefaultPath<T> extends Object implements Path.PathBuilder<T>
Path
implementation.Path.Builder<T,B extends Path.Builder<T,B>>, Path.FinalPath<T>, Path.PathBuilder<T>
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException
PATH_HIERARCHY_SEPARATOR
DEFAULT_CONFIG_PROPERTY_PREFIX, PATH
Constructor and Description |
---|
DefaultPath(String name,
Class<? extends T> type)
Construct a new DefaultPath
|
Modifier and Type | Method and Description |
---|---|
Path.PathBuilder<T> |
dataPath(String dataPath)
Sets the data model path name to which this object is bound.
|
Optional<String> |
getDataPath()
Get the data model path name to which this object is bound, if available.
|
String |
getName()
Gets the path name
|
Optional<Path<?>> |
getParent()
Gets the parent path
|
Class<? extends T> |
getType()
Get the expression type.
|
Path.PathBuilder<T> |
parent(Path<?> parent)
Sets the parent path
|
String |
toString() |
void |
validate()
Validate this expression.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fullName, fullName, isRootPath, of, relativeName, relativeName, stream
getTemporalType, isCollectionExpression, isConverterExpression
isDataMappable
public Class<? extends T> getType()
TypedExpression
getType
in interface TypedExpression<T>
public Optional<Path<?>> getParent()
Path
public Path.PathBuilder<T> parent(Path<?> parent)
Path.Builder
parent
in interface Path.Builder<T,Path.PathBuilder<T>>
parent
- The parent path to setpublic Path.PathBuilder<T> dataPath(String dataPath)
DataMappable.Builder
dataPath
in interface DataMappable.Builder<Path.PathBuilder<T>>
dataPath
- The data path to setpublic Optional<String> getDataPath()
DataMappable
getDataPath
in interface DataMappable
public void validate() throws Expression.InvalidExpressionException
Expression
validate
in interface Expression
Expression.InvalidExpressionException
- If the expression is not validCopyright © 2019 The Holon Platform. All rights reserved.