Class WithinDirectory
java.lang.Object
org.apache.creadur.whisker.model.WithinDirectory
- All Implemented Interfaces:
Comparable<WithinDirectory>, ContentElement
Links resources expected within a directory in the distribution
to licensing meta-data.
-
Constructor Summary
ConstructorsConstructorDescriptionWithinDirectory(String name, Collection<WithLicense> licenses, Collection<ByOrganisation> publicDomain) Constructs a description of a directory -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a visitor.intcompareTo(WithinDirectory other) Based on name.booleanBased on directory name.Gets resources contained, grouped by license applicable.getName()Gets the name of the directory described.Gets resources in the public domain, grouped by the organisation responsible.inthashCode()Based on name.booleanDoes the directory described have the given name?
-
Constructor Details
-
WithinDirectory
public WithinDirectory(String name, Collection<WithLicense> licenses, Collection<ByOrganisation> publicDomain) Constructs a description of a directory- Parameters:
name- directory name, not nulllicenses- resources contained, grouped by license applicable, not nullpublicDomain- resources in the public domain, grouped by responsible organisation
-
-
Method Details
-
getPublicDomain
Gets resources in the public domain, grouped by the organisation responsible.- Returns:
- not null
-
getName
-
getLicenses
Gets resources contained, grouped by license applicable.- Returns:
- not null
-
hashCode
-
equals
-
compareTo
Based on name.- Specified by:
compareToin interfaceComparable<WithinDirectory>- Returns:
- based on name
- See Also:
-
isNamed
Does the directory described have the given name?- Parameters:
directoryName- not null- Returns:
- true when the name match that of this directory, false otherwise
-
accept
Accepts a visitor.- Specified by:
acceptin interfaceContentElement- Parameters:
visitor- possibly null
-