Package org.intermine.dataloader
Class Source
- java.lang.Object
-
- org.intermine.dataloader.Source
-
public class Source extends java.lang.Object
Represents a data source, by name and skeleton status.- Author:
- Matthew Wakeling
-
-
Constructor Summary
Constructors Constructor Description Source(java.lang.String name)
Create a new source object with no type information that isn't a skeletonSource(java.lang.String name, boolean skeleton)
Create a new source object with no type information.Source(java.lang.String name, java.lang.String type)
Create a new source object that isn't a skeleton.Source(java.lang.String name, java.lang.String type, boolean skeleton)
Create a new source object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Getter for name.boolean
getSkeleton()
Getter for skeleton.java.lang.String
getType()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Source
public Source(java.lang.String name, java.lang.String type, boolean skeleton)
Create a new source object.- Parameters:
name
- the source nametype
- the source typeskeleton
- true if this soruce is a skeleton
-
Source
public Source(java.lang.String name, java.lang.String type)
Create a new source object that isn't a skeleton.- Parameters:
name
- the source nametype
- the source type
-
Source
public Source(java.lang.String name, boolean skeleton)
Create a new source object with no type information.- Parameters:
name
- the source nameskeleton
- true if this soruce is a skeleton
-
Source
public Source(java.lang.String name)
Create a new source object with no type information that isn't a skeleton- Parameters:
name
- the source name
-
-
Method Detail
-
getName
public java.lang.String getName()
Getter for name.- Returns:
- a String
-
getSkeleton
public boolean getSkeleton()
Getter for skeleton.- Returns:
- a boolean
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public java.lang.String getType()
- Returns:
- the type
-
-