Package com.basistech.rosette.dm
Class Concept.Builder
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<Concept,Concept.Builder>
com.basistech.rosette.dm.Concept.Builder
- Enclosing class:
- Concept
A Builder for concepts
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns an immutable concept based on the content of the builderSpecify the unique ID associated with this conceptprotected Concept.Builder
getThis()
Specify the name of the conceptSpecify the salience associated with this conceptMethods inherited from class com.basistech.rosette.dm.BaseAttribute.Builder
addAllToList, addAllToSet, buildExtendedProperties, extendedProperties, extendedProperty, nullOrList
-
Field Details
-
phrase
-
salience
-
conceptId
-
-
Constructor Details
-
Builder
Construct a builder out of the required properties- Parameters:
phrase
- the name of the conceptconceptId
- the ID associated with the concept
-
Builder
Constructs a builder by copying values from an existing concept- Parameters:
toCopy
- the object to copy from
-
-
Method Details
-
phrase
Specify the name of the concept- Parameters:
phrase
- the name of the concept- Returns:
- this
-
salience
Specify the salience associated with this concept- Parameters:
salience
- the salience associated with the concept- Returns:
- this
-
conceptId
Specify the unique ID associated with this concept- Parameters:
conceptId
- the unique ID associated with the concept- Returns:
- this
-
build
Returns an immutable concept based on the content of the builder- Returns:
- the new concept
-
getThis
- Specified by:
getThis
in classBaseAttribute.Builder<Concept,
Concept.Builder>
-