org.apache.creadur.whisker.model
public class ByOrganisation extends Object implements Comparable<ByOrganisation>, ContentElement
Constructor and Description |
---|
ByOrganisation(Organisation organisation,
Collection<Resource> resources)
Links an individual or group
to the resources for which they have responsibility.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accepts a visitor.
|
int |
compareTo(ByOrganisation other)
Delegates to organisation.
|
boolean |
equals(Object obj)
Equal iff organisations are equal.
|
String |
getId()
Gets the primary identifier for the individual or group responsible.
|
String |
getName()
Gets the name of the individual or group responsible.
|
Organisation |
getOrganisation()
Gets the organisation representing the individual or group responible
for the linked resources.
|
Collection<Resource> |
getResources()
Gets the resource for which the linked individual or group is responsible.
|
String |
getURL()
Gets the primary URL for the individual or group responsible.
|
int |
hashCode()
Based on organisation.
|
String |
toString()
Describes object suitably for logging.
|
public ByOrganisation(Organisation organisation, Collection<Resource> resources)
resources
- not nullorganisation
- not nullpublic String getName()
public String getURL()
public String getId()
public Collection<Resource> getResources()
public Organisation getOrganisation()
public final 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(ByOrganisation other)
compareTo
in interface Comparable<ByOrganisation>
other
- possibly nullOrganisation.compareTo(Organisation)
Comparable.compareTo(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface ContentElement
visitor
- possibly nullCopyright © 2011-2013 Apache Software Foundation. All Rights Reserved.