Class Source


  • public class Source
    extends Action
    A class to hold information about a source from a project.xml file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Source()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getLocation()
      Get the directory that contains this Source.
      java.lang.String getName()
      Get the name of this object.
      java.lang.String getType()
      Get the type of this object.
      java.lang.String getVersion()
      Get the version of this object.
      void setLocation​(java.io.File location)
      Set the location of this Source directory.
      void setName​(java.lang.String name)
      Set the name of this Source.
      void setType​(java.lang.String type)
      Set the name of this Source.
      void setVersion​(java.lang.String version)
      Set the version of this Source, e.g.
      • Methods inherited from class java.lang.Object

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

      • Source

        public Source()
    • Method Detail

      • setType

        public void setType​(java.lang.String type)
        Set the name of this Source.
        Parameters:
        type - the type
      • getType

        public java.lang.String getType()
        Get the type of this object.
        Returns:
        the type
      • setName

        public void setName​(java.lang.String name)
        Set the name of this Source.
        Parameters:
        name - the name
      • getName

        public java.lang.String getName()
        Get the name of this object.
        Returns:
        the name
      • setVersion

        public void setVersion​(java.lang.String version)
        Set the version of this Source, e.g. 2.0.0
        Parameters:
        version - the version
      • getVersion

        public java.lang.String getVersion()
        Get the version of this object.
        Returns:
        the version
      • setLocation

        public void setLocation​(java.io.File location)
        Set the location of this Source directory.
        Parameters:
        location - the directory containing this source
      • getLocation

        public java.io.File getLocation()
        Get the directory that contains this Source.
        Returns:
        the name