public class TokenNameFinderFactory extends BaseToolFactory
Constructor and Description |
---|
TokenNameFinderFactory()
Creates a
TokenNameFinderFactory that provides the default implementation
of the resources. |
TokenNameFinderFactory(byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceCodec<String> seqCodec) |
Modifier and Type | Method and Description |
---|---|
static TokenNameFinderFactory |
create(String subclassName,
byte[] featureGeneratorBytes,
Map<String,Object> resources,
SequenceCodec<String> seqCodec) |
NameContextGenerator |
createContextGenerator() |
AdaptiveFeatureGenerator |
createFeatureGenerators()
Creates the
AdaptiveFeatureGenerator . |
SequenceCodec<String> |
createSequenceCodec() |
static SequenceCodec<String> |
instantiateSequenceCodec(String sequenceCodecImplName) |
void |
validateArtifactMap()
Validates the parsed artifacts.
|
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
public TokenNameFinderFactory()
TokenNameFinderFactory
that provides the default implementation
of the resources.public TokenNameFinderFactory(byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> seqCodec)
public static TokenNameFinderFactory create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> seqCodec) throws InvalidFormatException
InvalidFormatException
public void validateArtifactMap() throws InvalidFormatException
BaseToolFactory
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.validateArtifactMap
in class BaseToolFactory
InvalidFormatException
public SequenceCodec<String> createSequenceCodec()
public NameContextGenerator createContextGenerator()
public AdaptiveFeatureGenerator createFeatureGenerators()
AdaptiveFeatureGenerator
. Usually this
is a set of generators contained in the AggregatedFeatureGenerator
.
Note:
The generators are created on every call to this method.public static SequenceCodec<String> instantiateSequenceCodec(String sequenceCodecImplName)
Copyright © 2021 The Apache Software Foundation. All rights reserved.