Package com.basistech.rosette.dm
Class Extent.Builder
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<Attribute,Attribute.Builder<T,B>>
com.basistech.rosette.dm.Attribute.Builder<Extent,Extent.Builder>
com.basistech.rosette.dm.Extent.Builder
- Enclosing class:
- Extent
Builder for Extent attributes.
-
Field Summary
Fields inherited from class com.basistech.rosette.dm.Attribute.Builder
endOffset, startOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable extent from the current state of the builder.protected Extent.Builder
getThis()
Methods inherited from class com.basistech.rosette.dm.Attribute.Builder
endOffset, setEndOffset, startOffset
Methods inherited from class com.basistech.rosette.dm.BaseAttribute.Builder
addAllToList, addAllToSet, buildExtendedProperties, extendedProperties, extendedProperty, nullOrList
-
Constructor Details
-
Builder
public Builder(int startOffset, int endOffset) Constructs a builder with offsets.- Parameters:
startOffset
- start characters offsetendOffset
- end character offset
-
Builder
Constructs a builder by copying values from an existing object.- Parameters:
toCopy
- the object to copy
-
-
Method Details
-
getThis
- Specified by:
getThis
in classAttribute.Builder<Extent,
Extent.Builder>
-
build
Creates an immutable extent from the current state of the builder.- Returns:
- the new extent
-