|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.template.OGConfig
The configuration for a TemplateOrderedGaps. See TemplateOrderedGaps.
Source code: OGConfig.java.
Specifically, this is used as a TFilter, to enforce which gap names exist in a Template.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
OGConfig(String[] as_uniqueGapNames)
Create a TemplateOrderedGaps. |
|
OGConfig(String[] as_uniqueGapNames,
boolean b_dupGapsAllowed)
Create a TemplateOrderedGaps. |
|
OGConfig(String[] as_uniqueGapNames,
int i_rqdUnqGapCount)
Create a TemplateOrderedGaps. |
|
OGConfig(String[] as_uniqueGapNames,
int i_rqdUnqGapCount,
boolean b_dupGapsAllowed)
Create a TemplateOrderedGaps. |
Method Summary | |
boolean |
areDupGapsAllowed()
Are duplicate gaps allowed? |
AOSLHashtable |
getAOSLHashtable()
|
AOSLookup |
getAOSLookup()
Get the AOSLookup for direct manipulation. |
APString |
getAPString()
|
int |
getArrIdx(String s_tr)
Get the array index at which the provided string exists. |
int |
getLength()
How many strings exist in the string array? |
String |
getString(int i_dx)
Get the string existing at the requested array index. |
boolean |
isTemplateValid(Template t_emplate)
Is the provided Template legal? |
String |
toString()
Get some information about this OGConfig. |
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 OGConfig(String[] as_uniqueGapNames)
Create a TemplateOrderedGaps.
Equal to OGConfig(ms_rdrdGaps, -1)
public OGConfig(String[] as_uniqueGapNames, int i_rqdUnqGapCount)
Create a TemplateOrderedGaps.
Equal to OGConfig(ms_rdrdGaps, i_rqdUnqGapCount, true)
public OGConfig(String[] as_uniqueGapNames, boolean b_dupGapsAllowed)
Create a TemplateOrderedGaps.
Equal to OGConfig(ms_rdrdGaps, -1, b_dupGapsAllowed)
public OGConfig(String[] as_uniqueGapNames, int i_rqdUnqGapCount, boolean b_dupGapsAllowed)
Create a TemplateOrderedGaps.
as_uniqueGapNames
- The list of unique gap names expected to exist in the Template. May not be null.i_rqdUnqGapCount
- The number of gaps expected to be in as_uniqueGapNames. If you don't care how many gaps are in as_uniqueGapNames, set this to -1. Otherwise, this must be greater than zero.b_dupGapsAllowed
- If true, then each unique gap may be duplicated any number of times. If false, then each unique gap must only exist once.Method Detail |
public boolean areDupGapsAllowed()
Are duplicate gaps allowed?
public final AOSLookup getAOSLookup()
Get the AOSLookup for direct manipulation.
public final AOSLHashtable getAOSLHashtable()
public final APString getAPString()
public String getString(int i_dx)
Get the string existing at the requested array index.
i_dx
- The requested array index.public int getArrIdx(String s_tr)
Get the array index at which the provided string exists.
getAOSLHashtable().getUniqueString(s_tr).getUnqArrIdx()
public int getLength()
How many strings exist in the string array?
public boolean isTemplateValid(Template t_emplate)
Is the provided Template legal?
isTemplateValid
in interface TFilter
t_emplate
- The Template to analyze. May not be null.public String toString()
Get some information about this OGConfig.
toString
in class Object
|
|||||||||
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