|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.dse.base.Externalizer
|
+--com.ibm.dse.base.DataExternalizer
The DataExternalizer class reads data elements. The definition file must be specified in DSE.INI, in the path settings.files.data. The tags must be in settings.tags.data.
| Fields inherited from class com.ibm.dse.base.Externalizer |
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)
This method replaces parentTag ("refData" tag) with its corresponding real tag located at the TagInputStream passed by parameter. |
static void |
linkReferences(Tag grandParentTag,
Tag parentTag,
int parentRefTagIndex)
This method 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)
This method alters the tag structure of the grandParentTag by linking all references to their real tags. |
void |
makeTagClassTable()
Makes the tagClassTable with the values in DSE.INI path: settings.tags.data |
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 tags which tag id appears in 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 id equals to tagId. |
| Methods inherited from class com.ibm.dse.base.Externalizer |
getClasses,
getTagClassTable,
getTagInputStream,
getTagOutputStream,
isRunTime,
readObject,
readObject,
readTag,
setRunTime,
setTagClassTable,
setTagInputStream,
tagList,
tagWithId |
| 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.StringaIniStream - java.io.BufferedInputStream
public DataExternalizer(java.lang.String option,
java.lang.String pathAndFile,
java.lang.String kind)
throws java.io.IOException
option - java.lang.StringpathAndFile - java.lang.String
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
aTag - Tag
protected Externalizer createNewExternalizer()
throws java.io.IOException,
DSEObjectNotFoundException
public void end()
public static void linkRefData(Tag parentTag,
Tag grandParentTag,
int parentRefTagIndex)
throws java.io.IOException,
DSEObjectNotFoundException
linkRefData(Tag, Tag, int, TagInputStream).
public static void linkRefData(Tag parentTag,
Tag grandParentTag,
int parentRefTagIndex,
TagInputStream aTagInputStream)
throws java.io.IOException,
DSEObjectNotFoundException
public static void linkReferences(Tag grandParentTag,
Tag parentTag,
int parentRefTagIndex)
throws java.io.IOException,
DSEObjectNotFoundException
grandParentTag - com.ibm.dse.base.TagparentTag - com.ibm.dse.base.TagparentRefTagIndex - int
protected static void linkReferences(Tag grandParentTag,
Tag parentTag,
int parentRefTagIndex,
TagInputStream aTagInputStream)
throws java.io.IOException,
DSEObjectNotFoundException
grandParentTag - com.ibm.dse.base.TagparentTag - com.ibm.dse.base.TagparentRefTagIndex - intaTagInputStream - com.ibm.dse.base.TagInputStreampublic void makeTagClassTable()
public static Tag overrideTagAttributes(Tag childTag,
Vector subTags)
childTag - com.ibm.dse.base.TagsubTags - com.ibm.dse.base.Vector
public void reset()
throws 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.
protected void reset(java.lang.String tagId,
TagInputStream aTagInputStream)
throws java.io.IOException
tagId - java.lang.StringaTagInputStream - com.ibm.dse.base.TagInputStream
public void reset(java.util.Enumeration listTagId)
throws java.io.IOException,
DSEObjectNotFoundException
listTagId - java.util.Enumeration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||