Package com.basistech.rosette.dm
Class Dependency.Builder
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<Dependency,Dependency.Builder>
com.basistech.rosette.dm.Dependency.Builder
- Enclosing class:
- Dependency
Builder for Dependency.
-
Constructor Summary
ConstructorDescriptionBuilder
(Dependency toCopy) Constructs a builder from an existing Dependency.Constructs a builder from the required properties. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs the Dependency from the current state of the builder.protected Dependency.Builder
getThis()
Methods inherited from class com.basistech.rosette.dm.BaseAttribute.Builder
addAllToList, addAllToSet, buildExtendedProperties, extendedProperties, extendedProperty, nullOrList
-
Constructor Details
-
Builder
Constructs a builder from the required properties.- Parameters:
relationship
- the relationship label on this dependency.governorTokenIndex
- the token index of the governing token.dependencyTokenIndex
- the token index of the dependency token.
-
Builder
Constructs a builder from an existing Dependency.- Parameters:
toCopy
- the object to copy
-
-
Method Details
-
build
Constructs the Dependency from the current state of the builder.- Returns:
- the new dependency.
-
getThis
- Specified by:
getThis
in classBaseAttribute.Builder<Dependency,
Dependency.Builder>
-