xbn.jdlcode
Class JDCArray

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

public class JDCArray
extends NamedArray

Manage a set of JDClasses. See JDClass.

Source code:  JDCArray.java.


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
JDCArray(JDClass[] a_jdClass, PTArray pt_array)
          Create a JDCArray.
 
Method Summary
 JDCArray getJDCAFromFQCN()
          Get the private, internal JDCArray in which the names of the JDClasses is the fully qualified class name.
 JDClass getJDCFromFQCN(String s_fqClass)
          Get the JDClass representing a class.
 JDClass getJDClass(int i_dx)
          Get the JDClass at the requested array index.
 JDClass getJDClass(String s_abbreviation)
          Get the JDClass representing a class with this abbreviation.
 PTArray getPTArray()
          Get the PTArray for direct manipulation.
 
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

JDCArray

public JDCArray(JDClass[] a_jdClass,
                PTArray pt_array)

Create a JDCArray.

This JDCArray is based upon the abbreviation. However, another JDCArray is created internally, where the name is the fully qualified class name. Retrieve it with getJDCAFromFQCN. See JDClass.setNameAbbrevOrFQCN.

Parameters:
a_jdClass - The array of JDClasses. Must be valid according to the super constructor. All abbreviations and fully qualified class names must be unique.
pt_array - The PTArray defining all PackageTypes existing in a_jdClass. Must be non-null, and every package type prefix must be represented in a_jdClass, and every getPart(0) must be a prefix existing in pt_array.
Method Detail

getPTArray

public PTArray getPTArray()

Get the PTArray for direct manipulation.


getJDCAFromFQCN

public JDCArray getJDCAFromFQCN()

Get the private, internal JDCArray in which the names of the JDClasses is the fully qualified class name. This is the "opposite" of this overall JDCArray, in which the names are the abbreviation.


getJDCFromFQCN

public JDClass getJDCFromFQCN(String s_fqClass)

Get the JDClass representing a class.

Parameters:
s_fqClass - The fully qualified class name. Must be valid according to getJDCAFromFQCN().doesExist(s_fqClass).

getJDClass

public JDClass getJDClass(String s_abbreviation)

Get the JDClass representing a class with this abbreviation.

Parameters:
s_abbreviation - The abbreviation. Must be valid according to getJDCAFromFQCN().doesExist(s_abbreviation).

getJDClass

public JDClass getJDClass(int i_dx)

Get the JDClass at the requested array index.

Parameters:
i_dx - The array index. Must range zero through (getCount() - 1).



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