|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.container.BlocketteFactory
public class BlocketteFactory
Factory class for all Blockette objects. Not only provides the creational method for constructing Blockettes but also acts as the reference engine for all particulars about the different blockette types. This is by design a static class.
Constructor Summary | |
---|---|
BlocketteFactory()
|
Method Summary | |
---|---|
static Blockette |
createBlockette(byte[] blocketteStream,
boolean swapFlag,
boolean isData)
Instructs the factory to build a Blockette object of the appropriate type based on SEED binary input. |
static Blockette |
createBlockette(byte[] blocketteStream,
boolean swapFlag,
boolean isData,
float version)
Instructs the factory to build a Blockette object of the appropriate type based on SEED binary input. |
static Blockette |
createBlockette(int blkType)
Instructs the factory to build a BLANK Blockette object of the indicated type number using the default version. |
static Blockette |
createBlockette(java.lang.String inputString)
Instructs the factory to build a Blockette object of the appropriate type based on tokenized String input. |
static Blockette |
createBlockette(java.lang.String inputString,
float version)
Instructs the factory to build a Blockette object of the appropriate type based on tokenized String input. |
static Blockette |
createBlockette(java.lang.String inputString,
java.lang.String delimiter,
java.lang.String blank)
Instructs the factory to build a Blockette object of the appropriate type based on tokenized String input. |
static Blockette |
createBlockette(java.lang.String inputString,
java.lang.String delimiter,
java.lang.String blank,
float version)
Instructs the factory to build a Blockette object of the appropriate type based on tokenized String input. |
static java.lang.String |
formatDecimal(int blkType,
int fieldNum,
java.lang.Object value)
Format the string value according the the field number's mask of the specified blockette type. |
static java.lang.String |
getBlocketteDefinition(int blkType)
Get blockette definitions. |
static byte[] |
getBytes(int blkType,
int fieldNum,
java.lang.String stringVal)
Convert a String to SEED binary for one blockette field. |
static java.lang.String |
getCategory(int blkType)
Return the category (Control Header type) of the blockette type. |
static float |
getDefaultVersion()
|
static java.lang.String |
getFieldLength(int blkType,
int fieldNum)
Return the length in bytes of the indicated field for the blockette type. |
static java.lang.String |
getFieldMask(int blkType,
int fieldNum)
Return the field mask or flags for the indicated field based on the blockette type. |
static java.lang.String |
getFieldName(int blkType,
int fieldNum)
Return the full name of the indicated field for the blockette type. |
static int |
getFieldRepeat(int blkType,
int fieldNum)
Indicate whether this is a repeating field. |
static java.lang.String |
getFieldType(int blkType,
int fieldNum)
Return the data type of the indicated field for the blockette type. |
static java.lang.String |
getListValue(java.lang.String listStr,
int listIndex)
|
static java.util.Vector |
getListVector(java.lang.String listStr)
|
static java.lang.String |
getName(int blkType)
Return the full name of the blockette type |
static java.lang.String |
getNumFields(int blkType)
Return the number of fields String, which is a comma-separated list associating number of fields with the SEED version, for the indicated blockette type. |
static int |
getNumFields(int blkType,
float version)
Return the number of fields in this blockette type based on the indicated SEED version. |
static int |
getStageField(int blkType)
get the field number that contains the response stage number for the indicated blockette type. |
static java.lang.String |
getTranslation(int blkType,
int fieldNum,
java.lang.Object value)
Return description of value at the indicated field number. |
static float |
getVersion(int blkType)
Return the initial SEED version of the blockette type. |
static boolean |
isResponseBlkType(int blkType)
return true if this is a response blockette |
static void |
main(java.lang.String[] args)
Test case method. |
static java.lang.String |
setListValue(java.lang.String listStr,
java.lang.String value,
int listIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlocketteFactory()
Method Detail |
---|
public static Blockette createBlockette(byte[] blocketteStream, boolean swapFlag, boolean isData, float version) throws SeedException
SeedException
public static Blockette createBlockette(byte[] blocketteStream, boolean swapFlag, boolean isData) throws SeedException
SeedException
public static Blockette createBlockette(java.lang.String inputString, java.lang.String delimiter, java.lang.String blank, float version) throws SeedException
SeedException
public static Blockette createBlockette(java.lang.String inputString, java.lang.String delimiter, java.lang.String blank) throws SeedException
SeedException
public static Blockette createBlockette(java.lang.String inputString) throws SeedException
SeedException
public static Blockette createBlockette(java.lang.String inputString, float version) throws SeedException
SeedException
public static Blockette createBlockette(int blkType) throws SeedException
SeedException
public static java.lang.String getName(int blkType) throws SeedException
SeedException
public static java.lang.String getCategory(int blkType) throws SeedException
SeedException
public static float getVersion(int blkType) throws SeedException
SeedException
public static float getDefaultVersion()
public static java.lang.String getNumFields(int blkType) throws SeedException
SeedException
public static int getNumFields(int blkType, float version) throws SeedException
SeedException
public static java.lang.String getFieldName(int blkType, int fieldNum) throws SeedException
SeedException
public static java.lang.String getFieldType(int blkType, int fieldNum) throws SeedException
SeedException
public static java.lang.String getFieldLength(int blkType, int fieldNum) throws SeedException
SeedException
public static java.lang.String getFieldMask(int blkType, int fieldNum) throws SeedException
SeedException
public static int getFieldRepeat(int blkType, int fieldNum) throws SeedException
SeedException
public static int getStageField(int blkType) throws SeedException
SeedException
public static boolean isResponseBlkType(int blkType) throws SeedException
SeedException
public static java.lang.String formatDecimal(int blkType, int fieldNum, java.lang.Object value) throws SeedException
SeedException
public static byte[] getBytes(int blkType, int fieldNum, java.lang.String stringVal) throws SeedException
SeedException
public static java.util.Vector getListVector(java.lang.String listStr)
public static java.lang.String getListValue(java.lang.String listStr, int listIndex)
public static java.lang.String setListValue(java.lang.String listStr, java.lang.String value, int listIndex)
public static java.lang.String getBlocketteDefinition(int blkType) throws SeedException
SeedException
public static java.lang.String getTranslation(int blkType, int fieldNum, java.lang.Object value)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |