Class Resource
java.lang.Object
org.apache.creadur.whisker.model.Resource
- All Implemented Interfaces:
Comparable<Resource>, ContentElement
A resource expected in a software distribution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a visitor.intComparison happens based on name.booleanBased on name.getName()Gets the name for this resource expected in a software distribution.Gets an identifier for the optional NOTICE.Gets a locator for the source.inthashCode()Based on name.booleanIs this resource linked to source?toString()Gets a description suitable for logging.
-
Constructor Details
-
Resource
-
-
Method Details
-
getName
Gets the name for this resource expected in a software distribution.- Returns:
- not null
-
getNoticeId
Gets an identifier for the optional NOTICE.- Returns:
- an identifier for the NOTICE, or null when the resource has no NOTICE
-
hashCode
-
equals
-
toString
-
compareTo
Comparison happens based on name.- Specified by:
compareToin interfaceComparable<Resource>- Parameters:
other- resource to compare to.- Returns:
- result of comparison based on name
- See Also:
-
accept
Accepts a visitor.- Specified by:
acceptin interfaceContentElement- Parameters:
visitor- possibly null
-
getSource
-
hasSource
public boolean hasSource()Is this resource linked to source?- Returns:
- true when this resource has linked source, false otherwise
-