Class SplitTagger.SplitDetails
- java.lang.Object
-
- com.norconex.importer.handler.tagger.impl.SplitTagger.SplitDetails
-
- Enclosing class:
- SplitTagger
public static class SplitTagger.SplitDetails extends Object
-
-
Constructor Summary
Constructors Constructor Description SplitDetails()SplitDetails(TextMatcher fieldMatcher, String toField, String separator)Constructor.SplitDetails(TextMatcher fieldMatcher, String toField, String separator, boolean separatorRegex)Constructor.SplitDetails(String fromField, String separator, boolean regex)Deprecated.Since 3.0.0.SplitDetails(String fromField, String toField, String separator, boolean regex)Deprecated.Since 3.0.0.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object other)TextMatchergetFieldMatcher()Gets field matcher for fields to split.StringgetFromField()Deprecated.Since 3.0.0, usegetFieldMatcher()insteadPropertySettergetOnSet()Gets the property setter to use when a value is set.StringgetSeparator()StringgetToField()inthashCode()booleanisRegex()Deprecated.Since 3.0.0, useisSeparatorRegex()insteadbooleanisSeparatorRegex()Gets whether the separator value is a regular expression.voidsetFieldMatcher(TextMatcher fieldMatcher)Sets the field matcher for fields to split.voidsetFromField(String fromField)Deprecated.Since 3.0.0, usesetFieldMatcher(TextMatcher)insteadvoidsetOnSet(PropertySetter onSet)Sets the property setter to use when a value is set.voidsetRegex(boolean regex)Deprecated.Since 3.0.0, usesetSeparatorRegex(boolean)insteadvoidsetSeparator(String separator)voidsetSeparatorRegex(boolean regex)Sets whether the separator value is a regular expression.voidsetToField(String toField)StringtoString()
-
-
-
Constructor Detail
-
SplitDetails
public SplitDetails()
-
SplitDetails
@Deprecated public SplitDetails(String fromField, String separator, boolean regex)
Deprecated.Since 3.0.0.Constructor.- Parameters:
fromField- source fieldseparator- split separatorregex- is separator a regular expression
-
SplitDetails
@Deprecated public SplitDetails(String fromField, String toField, String separator, boolean regex)
Deprecated.Since 3.0.0.Constructor.- Parameters:
fromField- source fieldtoField- target fieldseparator- split separatorregex- is separator a regular expression
-
SplitDetails
public SplitDetails(TextMatcher fieldMatcher, String toField, String separator)
Constructor.- Parameters:
fieldMatcher- source field matchertoField- target fieldseparator- split separator- Since:
- 3.0.0
-
SplitDetails
public SplitDetails(TextMatcher fieldMatcher, String toField, String separator, boolean separatorRegex)
Constructor.- Parameters:
fieldMatcher- source field matchertoField- target fieldseparator- split separatorseparatorRegex- whether the separator is a regular expression- Since:
- 3.0.0
-
-
Method Detail
-
getFieldMatcher
public TextMatcher getFieldMatcher()
Gets field matcher for fields to split.- Returns:
- field matcher
- Since:
- 3.0.0
-
setFieldMatcher
public void setFieldMatcher(TextMatcher fieldMatcher)
Sets the field matcher for fields to split.- Parameters:
fieldMatcher- field matcher- Since:
- 3.0.0
-
getFromField
@Deprecated public String getFromField()
Deprecated.Since 3.0.0, usegetFieldMatcher()insteadGets the from field.- Returns:
- from field
-
setFromField
@Deprecated public void setFromField(String fromField)
Deprecated.Since 3.0.0, usesetFieldMatcher(TextMatcher)insteadSets the from field.- Parameters:
fromField- from field.
-
getToField
public String getToField()
-
setToField
public void setToField(String toField)
-
getSeparator
public String getSeparator()
-
setSeparator
public void setSeparator(String separator)
-
isRegex
@Deprecated public boolean isRegex()
Deprecated.Since 3.0.0, useisSeparatorRegex()insteadGets whether regular expression is used.- Returns:
trueif regex is used
-
isSeparatorRegex
public boolean isSeparatorRegex()
Gets whether the separator value is a regular expression.- Returns:
trueif a regular expression.- Since:
- 3.0.0
-
setRegex
@Deprecated public void setRegex(boolean regex)
Deprecated.Since 3.0.0, usesetSeparatorRegex(boolean)insteadSets whether regular expression is used.- Parameters:
regex-trueif regex is used
-
setSeparatorRegex
public void setSeparatorRegex(boolean regex)
Sets whether the separator value is a regular expression.- Parameters:
regex-trueif a regular expression.- Since:
- 3.0.0
-
getOnSet
public PropertySetter getOnSet()
Gets the property setter to use when a value is set.- Returns:
- property setter
- Since:
- 3.0.0
-
setOnSet
public void setOnSet(PropertySetter onSet)
Sets the property setter to use when a value is set.- Parameters:
onSet- property setter- Since:
- 3.0.0
-
-