|
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.btt.base.Externalizer
com.ibm.btt.base.DataExternalizer
The DataExternalizer class reads data elements. The definition file must be specified in the DSE.INI file in the path settings.files.data section. The tags must be defined in the settings.tags.data section.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.Externalizer |
---|
numberOfObjects, tagClassTable, tagInputStream, TYPE_CONTEXT, TYPE_DATA, TYPE_FORMAT, TYPE_OPERATION, TYPE_PROCESSOR, TYPE_SERVICE, TYPE_SETTINGS, TYPE_TYPE, TYPE_UNKNOWN, TYPE_VIEW |
Constructor Summary | |
---|---|
DataExternalizer()
This constructor creates a DataExternalizer object. |
|
DataExternalizer(java.lang.String option,
java.io.BufferedInputStream aIniStream,
java.lang.String kind)
This constructor creates a new instance of the DataExternalizer class. |
|
DataExternalizer(java.lang.String option,
java.lang.String pathAndFile,
java.lang.String kind)
This constructor creates a new instance of the DataExternalizer class. |
|
DataExternalizer(java.net.URL aURL,
java.lang.String kind)
This constructor initializes an externalizer. |
Method Summary | |
---|---|
java.lang.Object |
convertTagToObject(Tag aTag)
Converts a tag to an Object. |
protected Externalizer |
createNewExternalizer()
Returns a new externalizer for the generic data file. |
void |
end()
Releases resources from this Externalizer. |
static void |
linkRefData(Tag parentTag,
Tag grandParentTag,
int parentRefTagIndex)
Deprecated. Replaced by linkRefData(Tag, Tag, int, TagInputStream) |
static void |
linkRefData(Tag parentTag,
Tag grandParentTag,
int parentRefTagIndex,
TagInputStream aTagInputStream)
Replaces the parentTag (refData tag) with its corresponding real tag located at the TagInputStream passed by parameter. |
static void |
linkReferences(Tag grandParentTag,
Tag parentTag,
int parentRefTagIndex)
Alters the tag structure of the tagInputStream for DSEDATA by linking all references to their real tags. |
protected static void |
linkReferences(Tag grandParentTag,
Tag parentTag,
int parentRefTagIndex,
TagInputStream aTagInputStream)
Alters the tag structure of the grandParentTag by linking all references to their real tags. |
void |
makeTagClassTable()
Makes the tagClassTable with the values in the DSE.INI file. |
static Tag |
overrideTagAttributes(Tag childTag,
Vector subTags)
Overrides a given tag with the attributes specified as param subtags in the given list of subtags. |
void |
reset()
Sets a new data externalizer to DataElement. |
void |
reset(java.util.Enumeration listTagId)
Resets the definition of the tag whose tag id appears in the listTagId. |
void |
reset(java.lang.String tagId)
Resets the definition of the tag with id tagId. |
protected void |
reset(java.lang.String tagId,
TagInputStream aTagInputStream)
Resets the definition of the data entity with an id equal to tagId. |
void |
resetShareDescriptors()
Resets the shareDataDescriptors flag defined in the dse.ini file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataExternalizer()
public DataExternalizer(java.lang.String option, java.io.BufferedInputStream aIniStream, java.lang.String kind) throws java.io.IOException
option
- java.lang.String - Must be Memory or FileaIniStream
- java.io.BufferedInputStreamkind
- public DataExternalizer(java.lang.String option, java.lang.String pathAndFile, java.lang.String kind) throws java.io.IOException
option
- java.lang.String - Must be Memory or FilepathAndFile
- java.lang.Stringkind
- public DataExternalizer(java.net.URL aURL, java.lang.String kind) throws java.io.IOException
Method Detail |
public java.lang.Object convertTagToObject(Tag aTag) throws java.io.IOException
convertTagToObject
in class Externalizer
aTag
- Tag
java.io.IOException
protected Externalizer createNewExternalizer() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public void end()
end
in class Externalizer
public static void linkRefData(Tag parentTag, Tag grandParentTag, int parentRefTagIndex) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void linkRefData(Tag parentTag, Tag grandParentTag, int parentRefTagIndex, TagInputStream aTagInputStream) throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public static void linkReferences(Tag grandParentTag, Tag parentTag, int parentRefTagIndex) throws java.io.IOException, DSEObjectNotFoundException
grandParentTag
- com.ibm.btt.base.TagparentTag
- com.ibm.btt.base.Tag - The tag that is currently being checked for referencesparentRefTagIndex
- int - The index of the parentTag in the subtags vector of grandParentTag
java.io.IOException
DSEObjectNotFoundException
protected static void linkReferences(Tag grandParentTag, Tag parentTag, int parentRefTagIndex, TagInputStream aTagInputStream) throws java.io.IOException, DSEObjectNotFoundException
grandParentTag
- com.ibm.btt.base.TagparentTag
- com.ibm.btt.base.Tag - The tag that is currently being checked for referencesparentRefTagIndex
- int - The index of the parentTag in the subtags vector of grandParentTagaTagInputStream
- com.ibm.btt.base.TagInputStream - The input stream in which references are searched
java.io.IOException
DSEObjectNotFoundException
public void makeTagClassTable()
makeTagClassTable
in class Externalizer
public static Tag overrideTagAttributes(Tag childTag, Vector subTags)
childTag
- com.ibm.btt.base.TagsubTags
- com.ibm.btt.base.Vector
public void reset() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public void reset(java.lang.String tagId) throws java.io.IOException, DSEObjectNotFoundException
tagId
- java.lang.String The id of the tag to reset
java.io.IOException
DSEObjectNotFoundException
protected void reset(java.lang.String tagId, TagInputStream aTagInputStream) throws java.io.IOException
tagId
- java.lang.StringaTagInputStream
- com.ibm.btt.base.TagInputStream
java.io.IOException
public void reset(java.util.Enumeration listTagId) throws java.io.IOException, DSEObjectNotFoundException
listTagId
- java.util.Enumeration
java.io.IOException
DSEObjectNotFoundException
public void resetShareDescriptors()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |