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.InvalidExpressionExceptionPATH_HIERARCHY_SEPARATORDEFAULT_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, waitfullName, fullName, isRootPath, of, relativeName, relativeName, streamgetTemporalType, isCollectionExpression, isConverterExpressionisDataMappablepublic Class<? extends T> getType()
TypedExpressiongetType in interface TypedExpression<T>public Optional<Path<?>> getParent()
Pathpublic Path.PathBuilder<T> parent(Path<?> parent)
Path.Builderparent in interface Path.Builder<T,Path.PathBuilder<T>>parent - The parent path to setpublic Path.PathBuilder<T> dataPath(String dataPath)
DataMappable.BuilderdataPath in interface DataMappable.Builder<Path.PathBuilder<T>>dataPath - The data path to setpublic Optional<String> getDataPath()
DataMappablegetDataPath in interface DataMappablepublic void validate()
throws Expression.InvalidExpressionException
Expressionvalidate in interface ExpressionExpression.InvalidExpressionException - If the expression is not validCopyright © 2019 The Holon Platform. All rights reserved.