|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.named.NamedArray | +--xbn.jdlcode.PTArray
Manage a set of unique PackageTypes. See PackageType.
Source code: PTArray.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
PTArray(PackageType[] a_packageType)
Create a PTArray. |
Method Summary | |
String |
getExternalUrl(int i_dx)
Get the external url for the requested array index. |
String |
getExternalUrl(String s_prefix)
Get the external url for the requested prefix. |
PackageType |
getPackageType(int i_dx)
Get the PackageType at the requested array index. |
PackageType |
getPackageType(String s_prefix)
Get the PackageType for the requested prefix. |
boolean |
isExternal(int i_dx)
Is the PackageType at the requested array index external? |
boolean |
isExternal(String s_prefix)
Is the PackageType having the requested prefix external? |
boolean |
isLocal(int i_dx)
Is the PackageType at the requested array index local? |
boolean |
isLocal(String s_prefix)
Is the PackageType having the requested prefix local? |
Methods inherited from class xbn.named.NamedArray |
doesExist, getAOSLHashtable, getAOSLookup, getAPNamed, getArrIdx, getLength, getName, getName, getNamed, getNamed, getNameList, getNameList, getNameList, getNameList, throwAXWithName, toString, toString |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PTArray(PackageType[] a_packageType)
Create a PTArray.
a_packageType
- The array of PackageTypes. Must be valid according to the super constructor, and must contain at least one PackageType that is local.Method Detail |
public final PackageType getPackageType(String s_prefix)
Get the PackageType for the requested prefix.
s_prefix
- The prefix of the requested PackageType. May not be null or zero characters in length. If doesExist(s_prefix)
equals false, then this prefix is considered primitive, and must contain only lowercase letters.doesExist(s_prefix)
equals true.
doesExist(s_prefix)
equals false.public PackageType getPackageType(int i_dx)
Get the PackageType at the requested array index.
(PackageType)getNamed(i_dx)
public final boolean isLocal(String s_prefix)
Is the PackageType having the requested prefix local?
getPackageType(s_prefix).isLocal()
public boolean isLocal(int i_dx)
Is the PackageType at the requested array index local?
getPackageType(i_dx).isLocal()
public boolean isExternal(String s_prefix)
Is the PackageType having the requested prefix external?
getPackageType(s_prefix).isExternal()
public boolean isExternal(int i_dx)
Is the PackageType at the requested array index external?
getPackageType(i_dx).isExternal()
public String getExternalUrl(String s_prefix)
Get the external url for the requested prefix.
getPackageType(s_prefix).getExternalUrl()
public String getExternalUrl(int i_dx)
Get the external url for the requested array index.
getPackageType(i_dx).getExternalUrl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava