xbn.template
Class TemplateArray

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

public class TemplateArray
extends NamedArray

Manage multiple Templates. See

Source code:  TemplateArray.java


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
TemplateArray(String s_name, Template[] a_template)
          Create a TemplateArray.
TemplateArray(String s_name, Template[] a_template, boolean b_listNames)
          Create a TemplateArray.
TemplateArray(Template[] a_template)
          Create a TemplateArray.
 
Method Summary
 Template getTemplate(int i_dx)
          Get the requested Template for direct manipulation.
 Template getTemplate(String s_name)
          Get the requested Template 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

TemplateArray

public TemplateArray(Template[] a_template)

Create a TemplateArray.

Equal to TemplateArray(null, a_template)


TemplateArray

public TemplateArray(String s_name,
                     Template[] a_template)

Create a TemplateArray.

Equal to TemplateArray(s_name, a_template)


TemplateArray

public TemplateArray(String s_name,
                     Template[] a_template,
                     boolean b_listNames)

Create a TemplateArray.

Equal to NamedArray(s_name, a_template, b_listNames)

Method Detail

getTemplate

public Template getTemplate(String s_name)

Get the requested Template for direct manipulation.

Equal to (Template)getNamed(s_name)

Parameters:
s_name - The name of the desired level. Must equal the name of an existing Template contained in this TemplateArray.

getTemplate

public Template getTemplate(int i_dx)

Get the requested Template for direct manipulation.

Equal to (Template)getNamed(int)

Parameters:
i_dx - The array index of the Template object. Must be between 0 and [NamedArray.getCount - 1], inclusive.



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