Builder that allows DataPropertyPath instances to be created.
More...
#include <luciad/datamodels/DataPropertyPath.h>
Builder that allows DataPropertyPath instances to be created.
Typical usage would be create a DataPropertyPath::Builder using DataPropertyPath::newBuilder, specifying the origin DataType. Then specify the properties to follow and finally build() the data property path. The following snippet shows how this is done for a simple example data property path:
Builder & originType(const DataType &originType)
Sets the type that the created path is associated to.
Builder & property(const DataProperty &property)
Sets the next property in the path.
DataPropertyPath build()
Build the data property path.
static Builder newBuilder()
Creates a new builder.
◆ ~Builder()
luciad::DataPropertyPath::Builder::~Builder |
( |
| ) |
|
◆ build()
Build the data property path.
After calling this function, this builder should no longer be used.
- Exceptions
-
- Returns
- the data property path.
◆ originType()
Builder & luciad::DataPropertyPath::Builder::originType |
( |
const DataType & |
originType | ) |
|
Sets the type that the created path is associated to.
Calling this function is mandatory. You have to call this method before setting any property.
- Parameters
-
originType | the type that the created path is associated to. |
- Returns
- this builder.
- Exceptions
-
◆ property() [1/2]
Sets the next property in the path.
- Parameters
-
property | the next property in the path. |
- Returns
- this builder.
- Exceptions
-
◆ property() [2/2]
Builder & luciad::DataPropertyPath::Builder::property |
( |
const std::string & |
name | ) |
|
Sets the name of the next property in the path.
- Parameters
-
name | the name of the next property in the path. |
- Returns
- this builder.
- Exceptions
-