Class ModelMergerTask


  • public class ModelMergerTask
    extends org.apache.tools.ant.Task
    Task to merge a single additions file into an intermine XML model.
    Author:
    Thomas Riley
    See Also:
    ModelMerger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> additionsFiles  
      protected java.io.File inputModelFile  
      protected java.io.File outputModelFile  
      • Fields inherited from class org.apache.tools.ant.Task

        description, location, target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        project
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelMergerTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      void setAdditionsFile​(java.lang.String fileName)
      The file name containing model additions.
      void setAdditionsFiles​(java.util.List<java.lang.String> files)
      The file names containing model additions.
      void setInputModelFile​(java.io.File file)
      Set the model to add additions to.
      void setOutputFile​(java.io.File file)
      Path of file to write resulting model to.
      • Methods inherited from class org.apache.tools.ant.Task

        getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        getProject, setProject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • additionsFiles

        protected java.util.List<java.lang.String> additionsFiles
      • inputModelFile

        protected java.io.File inputModelFile
      • outputModelFile

        protected java.io.File outputModelFile
    • Constructor Detail

      • ModelMergerTask

        public ModelMergerTask()
    • Method Detail

      • setInputModelFile

        public void setInputModelFile​(java.io.File file)
        Set the model to add additions to.
        Parameters:
        file - path to model file
      • setAdditionsFile

        public void setAdditionsFile​(java.lang.String fileName)
        The file name containing model additions.
        Parameters:
        fileName - the additions file
      • setAdditionsFiles

        public void setAdditionsFiles​(java.util.List<java.lang.String> files)
        The file names containing model additions.
        Parameters:
        files - the additions files
      • setOutputFile

        public void setOutputFile​(java.io.File file)
        Path of file to write resulting model to. May be the same as inputModelFile.
        Parameters:
        file - path to write resulting model to
      • execute

        public void execute()
        Overrides:
        execute in class org.apache.tools.ant.Task