Package com.luciad.datamodels
Class DataPropertyPath
java.lang.Object
com.luciad.datamodels.DataPropertyPath
- All Implemented Interfaces:
AutoCloseable
Describes the path to a
DataProperty in a DataType.
It can also describe paths to nested properties. The path is related to a specific DataType (its getOriginType) and is used to address values in data objects of that type.
A path may also address values in list-typed properties (see DataCollectionKind):
- Without an index step, it addresses the list.
- With a
Builder#indexstep, it addresses a single list element.
getValueCollectionKind reports which shape the target property has.
Restrictions:
- A path may cross at most one list (
Builder#indexcan be called at most once on a builder). - After a list-typed property step, the path must either be terminated or followed by
Builder#index. It cannot descend into the list's element type. Builder#indexis terminal: no further property or index step may be added after it. Multi-level access into composite list elements is done by retrieving the element as a separate object and building a new path on that.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilderthat allowsDataPropertyPathinstances to be created. -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder with the current data property path.voidclose()booleanprotected voidfinalize()Returns the type of data object that this path accesses.Returns the property that this path points to (the property at the end of the path).Returns the collection kind of the value that this path points to.Returns the value type of the property that this path points to.inthashCode()Returns the hash code.static DataPropertyPath.BuilderCreates a new builder.toString()
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
Creates a new builder.- Returns:
- a new builder.
-
asBuilder
Returns a builder with the current data property path.- Returns:
- a builder with the current data property path.
-
getOriginType
Returns the type of data object that this path accesses.- Returns:
- the type of data object that this path accesses.
-
getValueType
Returns the value type of the property that this path points to.For a list-typed leaf (list or indexed element), this is the element type.
- Returns:
- the value type of the property that this path points to.
-
getValueCollectionKind
Returns the collection kind of the value that this path points to.The result reflects the kind of value:
- Scalar for a path that points to a scalar property (including an element inside a list).
- List for a path that points to a list.
Defaults to Scalar for empty paths (originType only).
- Returns:
- the collection kind of the value at this path.
- Since:
- 2026.1
-
getTargetProperty
Returns the property that this path points to (the property at the end of the path).For a path with a terminal index step, this is the list property that the index applies to. For an empty path (origin type only, no property steps), this has no value.
- Returns:
- the target property, or no value if this path has no property steps.
- Since:
- 2026.1
-
toString
-
hashCode
public int hashCode()Returns the hash code. -
equals
-