Class FieldSource
- java.lang.Object
-
- org.apache.manifoldcf.agents.transformation.forcedmetadata.FieldSource
-
- All Implemented Interfaces:
IDataSource
public class FieldSource extends java.lang.Object implements IDataSource
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]cachedValueprotected static intCASE_EXACTprotected static intCASE_LOWERprotected static intCASE_UPPERprotected intcaseSpecifierprotected static java.lang.Object[]EMPTY_OBJECT_ARRAYprotected static java.lang.String[]EMPTY_STRING_ARRAYprotected java.lang.StringfieldNameprotected intgroupNumberprotected FieldDataFactoryrdprotected java.util.regex.PatternregExpPattern
-
Constructor Summary
Constructors Constructor Description FieldSource(FieldDataFactory rd, java.lang.String fieldName, java.lang.String regExp, java.lang.String groupNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]calculateExtractedResult()java.lang.Object[]getRawForm()intgetSize()java.lang.String[]getStringForm()
-
-
-
Field Detail
-
CASE_EXACT
protected static final int CASE_EXACT
- See Also:
- Constant Field Values
-
CASE_LOWER
protected static final int CASE_LOWER
- See Also:
- Constant Field Values
-
CASE_UPPER
protected static final int CASE_UPPER
- See Also:
- Constant Field Values
-
EMPTY_OBJECT_ARRAY
protected static final java.lang.Object[] EMPTY_OBJECT_ARRAY
-
EMPTY_STRING_ARRAY
protected static final java.lang.String[] EMPTY_STRING_ARRAY
-
rd
protected final FieldDataFactory rd
-
fieldName
protected final java.lang.String fieldName
-
regExpPattern
protected final java.util.regex.Pattern regExpPattern
-
groupNumber
protected final int groupNumber
-
caseSpecifier
protected final int caseSpecifier
-
cachedValue
protected java.lang.String[] cachedValue
-
-
Constructor Detail
-
FieldSource
public FieldSource(FieldDataFactory rd, java.lang.String fieldName, java.lang.String regExp, java.lang.String groupNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-
Method Detail
-
getSize
public int getSize() throws java.io.IOException, org.apache.manifoldcf.core.interfaces.ManifoldCFException- Specified by:
getSizein interfaceIDataSource- Throws:
java.io.IOExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getRawForm
public java.lang.Object[] getRawForm() throws java.io.IOException, org.apache.manifoldcf.core.interfaces.ManifoldCFException- Specified by:
getRawFormin interfaceIDataSource- Throws:
java.io.IOExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
getStringForm
public java.lang.String[] getStringForm() throws java.io.IOException, org.apache.manifoldcf.core.interfaces.ManifoldCFException- Specified by:
getStringFormin interfaceIDataSource- Throws:
java.io.IOExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
calculateExtractedResult
protected java.lang.String[] calculateExtractedResult() throws java.io.IOException, org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
java.io.IOExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-