|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.FormatElement
com.ibm.dse.base.KeyedCollectionFormat
com.ibm.dse.base.RecordFormat
com.ibm.dse.base.DynamicRecordFormat
The DynamicRecordFormat class implements a dynamic format for records. It is used to unformat a formatted string into a context or a KeyedCollection when some of the required DataElements do not exist. They are dynamically created.
Field Summary | |
---|---|
(package private) int |
currentSize
|
Fields inherited from class com.ibm.dse.base.KeyedCollectionFormat |
---|
dataElementEmpty, elements |
Fields inherited from class com.ibm.dse.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
DynamicRecordFormat()
This constructor creates a DynamicRecordFormat object. |
|
DynamicRecordFormat(java.lang.String aName)
This constructor creates a DynamicRecordFormat object with name aName. |
Method Summary | |
---|---|
protected void |
addElementFromFormat(java.lang.String aPath,
FormatElement aFormatElement,
KeyedCollection aKeyedCollection)
Extracts the description of an Element from aFormatElement and calls the method setValueAt to add the DataElement to the aKeyedCollection collection. |
protected java.lang.Object |
obtainDataElement(FormatElement aFormatElement,
Context aContext)
Looks for the element which will format aFormatElement. |
protected DataElement |
obtainDataElement(FormatElement aFormatElement,
KeyedCollection aKeyedCollection)
Looks for the element which will format aFormatElement. |
DataElement |
unformatContext(java.lang.String aString,
Context aContext)
Performs the unformat by looking for the elements to format around the context tree of the context passed as a parameter. |
KeyedCollection |
unformatKeyedCollection(java.lang.String aString,
KeyedCollection aKeyedCollection)
Performs the unformat by looking for the elements to format around the keyedCollection passed as a parameter. |
Methods inherited from class com.ibm.dse.base.RecordFormat |
---|
extract, formatContext, formatKeyedCollection, initializeFrom, toString, toStrings |
Methods inherited from class com.ibm.dse.base.KeyedCollectionFormat |
---|
add, addElementAt, addFirst, at, format, format, getDataElementEmpty, getElements, getEnumeration, reinitialize, removeAll, removeAt, setElements, size, unformat, unformat |
Methods inherited from class com.ibm.dse.base.FormatElement |
---|
exceptionInfo, externalizer, format, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, readExternal, readExternal, readObject, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, unformat, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int currentSize
Constructor Detail |
public DynamicRecordFormat()
public DynamicRecordFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String
java.io.IOException.
java.io.IOException
Method Detail |
protected void addElementFromFormat(java.lang.String aPath, FormatElement aFormatElement, KeyedCollection aKeyedCollection) throws DSEObjectNotFoundException, DSEInvalidArgumentException
aPath
- java.lang.StringaFormatElement
- FormatElementaKeyedCollection
- KeyedCollection
DSEObjectNotFoundException
DSEInvalidArgumentException
protected java.lang.Object obtainDataElement(FormatElement aFormatElement, Context aContext) throws DSEInvalidRequestException
obtainDataElement
in class RecordFormat
aFormatElement
- com.ibm.dse.base.FormatElementaContext
- com.ibm.dse.base.Context
com.ibm.dse.base.DSEInvalidRequestException.
DSEInvalidRequestException
protected DataElement obtainDataElement(FormatElement aFormatElement, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException
obtainDataElement
in class RecordFormat
aFormatElement
- com.ibm.dse.base.FormatElementaKeyedCollection
- com.ibm.dse.base.KeyedCollection
DSEInvalidRequestException
public DataElement unformatContext(java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformatContext
in class RecordFormat
aString
- java.lang.StringaContext
- com.ibm.dse.base.Context
DSEInvalidRequestException
DSEInvalidArgumentException
public KeyedCollection unformatKeyedCollection(java.lang.String aString, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformatKeyedCollection
in class RecordFormat
aString
- java.lang.StringaKeyedCollection
- com.ibm.dse.base.KeyedCollection
DSEInvalidRequestException
DSEInvalidArgumentException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |