|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.typedef.Package
A STEP package.
Packages are unique objects.
Field Summary | |
static Package |
ROOT
The "root" (global) package scope. |
static String |
SEPARATOR
The name separator for nested packages. |
Method Summary | |
boolean |
equals(Object o)
Compare two packages for equality. |
String |
getFullName()
Get the fully-qualified name of this package. |
String |
getName()
Get the short name of this package. |
Package |
getParent()
Get the parent of this package. |
int |
hashCode()
Get the hash code for this package. |
String |
qualify(String baseName)
Combine a package and a name to get a fully-qualified name. |
String |
toString()
|
static Package |
v(String name)
Get the unique package with the given name. |
static Package |
v(String name,
Package parent)
Get the unique package with the given name and parent. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String SEPARATOR
public static final Package ROOT
Method Detail |
public static Package v(String name, Package parent)
name
- the name of the package, which may be relative.
Passing "x.y.z", "parent" gives "parent.x.y.z".parent
- the package that contains the requested name.
The parent may be the ROOT
package.public static Package v(String name)
v(String,Package)
public String getName()
getFullName()
public String getFullName()
getName()
,
qualify(String)
public String qualify(String baseName)
ROOT
.getFullName()
public Package getParent()
NOTE: The ROOT
package has no parent.
null
if there is no parent.public boolean equals(Object o)
Two packages are equal if they are the same object. This equality property is enforced by the creational pattern for packages.
equals
in class Object
v(String,Package)
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |