dk.netarkivet.harvester.datamodel
Class SparseDomain

java.lang.Object
  extended by 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
SparseDomain(java.lang.String domainName, java.util.List<java.lang.String> domainConfigurationNames)
          Create new instance of a sparse domain.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.