Class SeedList
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.SeedList
-
- All Implemented Interfaces:
Named
,Serializable
public class SeedList extends Object implements Serializable, Named
Representation of the list of harvesting seeds. Basically just a list of URL's.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Auto generated by IntelliJ IDEA.String
getComments()
Get the comments of this seedlist.String
getName()
Get the name of this seedlist.List<String>
getSeeds()
Gets all seeds in a list.String
getSeedsAsString()
Gets the seeds.int
hashCode()
Auto generated by IntelliJ IDEA.void
setComments(String s)
Set the comments for this list.String
toString()
Returns a human-readable representation of the seeds.
-
-
-
Constructor Detail
-
SeedList
public SeedList(String name, String seedsAsString)
Create new seedlist. Helper constructor that takes the seeds as a newline separated string.- Parameters:
name
- the name of the new seedlistseedsAsString
- the seeds- Throws:
ArgumentNotValid
- if name is null or empty or seeds are null. Empty seeds are allowed.
-
SeedList
public SeedList(String name, List<String> seeds)
Create new seedlist.- Parameters:
name
- the name of the new seedlistseeds
- the seeds- Throws:
ArgumentNotValid
- if the arguments are null or empty strings
-
-
Method Detail
-
getSeedsAsString
public String getSeedsAsString()
Gets the seeds. Seeds are separated by newline,- Returns:
- the seedlist as a String
-
getName
public String getName()
Get the name of this seedlist.
-
getComments
public String getComments()
Get the comments of this seedlist.- Specified by:
getComments
in interfaceNamed
- Returns:
- The comments.
-
setComments
public void setComments(String s)
Set the comments for this list.- Parameters:
s
- User-entered free-form comments.
-
toString
public String toString()
Returns a human-readable representation of the seeds.
-
equals
public boolean equals(Object o)
Auto generated by IntelliJ IDEA.
-
-