Package com.basistech.rosette.dm
Class TranslatedData.Builder
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<TranslatedData,TranslatedData.Builder>
com.basistech.rosette.dm.TranslatedData.Builder
- Enclosing class:
- TranslatedData
public static class TranslatedData.Builder
extends BaseAttribute.Builder<TranslatedData,TranslatedData.Builder>
Builder class for TranslatedData.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(TranslatedData toCopy) Constructs a builder from an existing TranslatedData objectConstructs a builder from the required properties -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new TranslatedData object from the current state of the builder.confidence(Double confidence) Specify the confidence value for this translation.protected TranslatedData.BuildergetThis()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:
domain- specifies the language and script of the translationtranslation- the translation for the text
-
Builder
Constructs a builder from an existing TranslatedData object- Parameters:
toCopy- the existing object
-
-
Method Details
-
confidence
Specify the confidence value for this translation.- Parameters:
confidence- the confidence, or null to mean that there is associated confidence value.- Returns:
- this.
-
build
Builds a new TranslatedData object from the current state of the builder.- Returns:
- a new TranslatedData object.
-
getThis
- Specified by:
getThisin classBaseAttribute.Builder<TranslatedData,TranslatedData.Builder>
-