Class SparseDomain
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.SparseDomain
-
public class SparseDomain extends java.lang.Object
Reduced version of the Domain class for presentation purposes. Immutable. (domain configuration list not enforced immutable though).- See Also:
Domain
-
-
Constructor Summary
Constructors Constructor Description SparseDomain(java.lang.String domainName, java.util.List<java.lang.String> domainConfigurationNames)
Create new instance of a sparse domain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<java.lang.String>
getDomainConfigurationNames()
Gets the names of configurations in this domain.java.lang.String
getName()
Gets the name of this domain.
-
-
-
Constructor Detail
-
SparseDomain
public SparseDomain(java.lang.String domainName, java.util.List<java.lang.String> domainConfigurationNames)
Create new instance of a sparse domain.- Parameters:
domainName
- Domains name.domainConfigurationNames
- List of names of all configurations for domain.- Throws:
ArgumentNotValid
- if either of the arguments are null or empty.
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of this domain.- Returns:
- the name of this domain
-
getDomainConfigurationNames
public java.lang.Iterable<java.lang.String> getDomainConfigurationNames()
Gets the names of configurations in this domain.- Returns:
- the names of all configurations for this domain.
-
-