xbn.jdlcode
Class PTArray

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--xbn.named.NamedArray
              |
              +--xbn.jdlcode.PTArray
All Implemented Interfaces:
Named

public class PTArray
extends NamedArray

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

PTArray

public PTArray(PackageType[] a_packageType)

Create a PTArray.

Parameters:
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

getPackageType

public final PackageType getPackageType(String s_prefix)

Get the PackageType for the requested prefix.

Parameters:
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.
Returns:
The PackageType that has a prefix of s_prefix if doesExist(s_prefix) equals true.
null if doesExist(s_prefix) equals false.

getPackageType

public PackageType getPackageType(int i_dx)

Get the PackageType at the requested array index.

Returns:
(PackageType)getNamed(i_dx)

isLocal

public final boolean isLocal(String s_prefix)

Is the PackageType having the requested prefix local?

Returns:
getPackageType(s_prefix).isLocal()

isLocal

public boolean isLocal(int i_dx)

Is the PackageType at the requested array index local?

Returns:
getPackageType(i_dx).isLocal()

isExternal

public boolean isExternal(String s_prefix)

Is the PackageType having the requested prefix external?

Returns:
getPackageType(s_prefix).isExternal()

isExternal

public boolean isExternal(int i_dx)

Is the PackageType at the requested array index external?

Returns:
getPackageType(i_dx).isExternal()

getExternalUrl

public String getExternalUrl(String s_prefix)

Get the external url for the requested prefix.

Returns:
getPackageType(s_prefix).getExternalUrl()

getExternalUrl

public String getExternalUrl(int i_dx)

Get the external url for the requested array index.

Returns:
getPackageType(i_dx).getExternalUrl()



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo