org.apache.creadur.whisker.model
public class WithinDirectory extends Object implements Comparable<WithinDirectory>, ContentElement
Constructor and Description |
---|
WithinDirectory(String name,
Collection<WithLicense> licenses,
Collection<ByOrganisation> publicDomain)
Constructs a description of a directory
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accepts a visitor.
|
int |
compareTo(WithinDirectory other)
Based on name.
|
boolean |
equals(Object obj)
Based on directory name.
|
Collection<WithLicense> |
getLicenses()
Gets resources contained,
grouped by license applicable.
|
String |
getName()
Gets the name of the directory described.
|
Collection<ByOrganisation> |
getPublicDomain()
Gets resources in the public domain,
grouped by the organisation responsible.
|
int |
hashCode()
Based on name.
|
boolean |
isNamed(String directoryName)
Does the directory described have the given name?
|
public WithinDirectory(String name, Collection<WithLicense> licenses, Collection<ByOrganisation> publicDomain)
name
- directory name, not nulllicenses
- resources contained,
grouped by license applicable, not nullpublicDomain
- resources in the public domain,
grouped by responsible organisationpublic Collection<ByOrganisation> getPublicDomain()
public String getName()
public Collection<WithLicense> getLicenses()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
obj
- possibly nullObject.equals(java.lang.Object)
public int compareTo(WithinDirectory other)
compareTo
in interface Comparable<WithinDirectory>
Comparable.compareTo(java.lang.Object)
public boolean isNamed(String directoryName)
directoryName
- not nullpublic void accept(Visitor visitor)
accept
in interface ContentElement
visitor
- possibly nullCopyright © 2011-2013 Apache Software Foundation. All Rights Reserved.