Class BaseToolFactory

    • Constructor Detail

      • BaseToolFactory

        public BaseToolFactory()
        All sub-classes should have an empty constructor
    • Method Detail

      • createArtifactSerializersMap

        public java.util.Map<java.lang.String,​ArtifactSerializer> createArtifactSerializersMap()
        Creates a 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.

      • createArtifactMap

        public java.util.Map<java.lang.String,​java.lang.Object> createArtifactMap()
        Creates a 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.

      • createManifestEntries

        public java.util.Map<java.lang.String,​java.lang.String> createManifestEntries()
        Creates the manifest entries that will be added to the model manifest
        Returns:
        the manifest entries to added to the model manifest
      • validateArtifactMap

        public abstract void validateArtifactMap()
                                          throws InvalidFormatException
        Validates the parsed artifacts. If something is not valid subclasses should throw an InvalidFormatException. Note: Subclasses should generally invoke super.validateArtifactMap at the beginning of this method.
        Throws:
        InvalidFormatException