public abstract class BaseToolFactory
extends java.lang.Object
ArtifactProvider and
calls BaseToolFactory(Map)
createArtifactMap() and
createArtifactSerializersMap() methods if necessary.
| Constructor and Description |
|---|
BaseToolFactory()
All sub-classes should have an empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
static BaseToolFactory |
create(java.lang.Class<? extends BaseToolFactory> factoryClass,
ArtifactProvider artifactProvider) |
static BaseToolFactory |
create(java.lang.String subclassName,
ArtifactProvider artifactProvider) |
java.util.Map<java.lang.String,java.lang.Object> |
createArtifactMap()
Creates a
Map with pairs of keys and objects. |
java.util.Map<java.lang.String,ArtifactSerializer> |
createArtifactSerializersMap()
Creates a
Map with pairs of keys and ArtifactSerializer. |
java.util.Map<java.lang.String,java.lang.String> |
createManifestEntries()
Creates the manifest entries that will be added to the model manifest
|
abstract void |
validateArtifactMap()
Validates the parsed artifacts.
|
public BaseToolFactory()
public java.util.Map<java.lang.String,ArtifactSerializer> createArtifactSerializersMap()
Map with pairs of keys and ArtifactSerializer.
The models implementation should call this method from
BaseModel#createArtifactSerializersMap
The base implementation will return a HashMap that should be
populated by sub-classes.
public java.util.Map<java.lang.String,java.lang.Object> createArtifactMap()
Map with pairs of keys and objects. The models
implementation should call this constructor that creates a model
programmatically.
The base implementation will return a HashMap that should be
populated by sub-classes.
public java.util.Map<java.lang.String,java.lang.String> createManifestEntries()
public abstract void validateArtifactMap()
throws InvalidFormatException
InvalidFormatException.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.InvalidFormatExceptionpublic static BaseToolFactory create(java.lang.String subclassName, ArtifactProvider artifactProvider) throws InvalidFormatException
InvalidFormatExceptionpublic static BaseToolFactory create(java.lang.Class<? extends BaseToolFactory> factoryClass, ArtifactProvider artifactProvider) throws InvalidFormatException
InvalidFormatExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved