public class PackageLocation extends Object implements SortableLocation
| Constructor and Description |
|---|
PackageLocation(String packageName)
Creates a new PackageLocation with the supplied package name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SortableLocation that)
Compares the string representations of this PackageLocation and the supplied SortableLocation.
|
boolean |
equals(Object obj) |
String |
getAnnotationRenamedTo()
Note: Packages cannot be renamed from a JAXB annotation.
|
String |
getPackageName()
Retrieves the name of the package potentially holding JavaDoc.
|
String |
getPath()
Retrieves the path of this SortableLocation.
|
int |
hashCode() |
boolean |
isEqualToPath(String path)
Validates if the supplied path is equal to this SortableLocation.
|
String |
toString() |
public PackageLocation(String packageName)
packageName - The name of the package potentially holding JavaDoc. Cannot be null.public String getPackageName()
null.public String getAnnotationRenamedTo()
getAnnotationRenamedTo in interface SortableLocationSortableLocation.XmlElement.name(),
XmlAttribute.name(),
XmlType.name()public String getPath()
getPath in interface SortableLocationpublic boolean isEqualToPath(String path)
isEqualToPath in interface SortableLocationpath - The non-null path to compare to this SortableLocation.true if this SortableLocation is equal to the supplied path.public int compareTo(SortableLocation that)
Compares the string representations of this PackageLocation and the supplied SortableLocation.
compareTo in interface Comparable<SortableLocation>Copyright © 2005–2016 MojoHaus. All rights reserved.