Package org.intermine.plugin.project
Class Source
- java.lang.Object
-
- org.intermine.plugin.project.Action
-
- org.intermine.plugin.project.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.FilegetLocation()Get the directory that contains this Source.java.lang.StringgetName()Get the name of this object.java.lang.StringgetType()Get the type of this object.java.lang.StringgetVersion()Get the version of this object.voidsetLocation(java.io.File location)Set the location of this Source directory.voidsetName(java.lang.String name)Set the name of this Source.voidsetType(java.lang.String type)Set the name of this Source.voidsetVersion(java.lang.String version)Set the version of this Source, e.g.-
Methods inherited from class org.intermine.plugin.project.Action
addUserProperty, getUserProperties
-
-
-
-
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
-
-