|
IBM WebSphere Multichannel Bank 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.types.DSETypeExternalizer
public class DSETypeExternalizer
This class provides an implementation of the TypeExternalizer interface and is responsible for maintaining a registry of all known Types indexed by name.
Field Summary | |
---|---|
protected static DataExternalizer |
helperExternalizer
|
Fields inherited from interface com.ibm.btt.base.types.TypeConstants |
---|
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, CONV_TYPE_OUTPUT, CONV_TYPE_SER, CONV_TYPE_XML, disabled, hidden, isAmended, isDisabled, isHidden, isMandatory, isOmitted, isReadOnly, mandatory, omitted, readOnly, TYPE_DEFAULT, TYPE_REGISTRY_INIT_SIZE |
Constructor Summary | |
---|---|
DSETypeExternalizer()
|
|
DSETypeExternalizer(java.lang.String option,
java.io.BufferedInputStream aIniFile)
This constructor creates a DSETypeExternalizer given a BufferedInputStream. |
|
DSETypeExternalizer(java.lang.String option,
java.lang.String pathAndFile)
This constructor creates a DSETypeExternalizer given the path and file name of the externalized file. |
|
DSETypeExternalizer(java.net.URL aURL)
This constructor creates a DSETypeExternalizer from the given URL. |
Method Summary | |
---|---|
Type |
addType(Type newType)
Adds the Type passed as an argument to the registry of Types known to the TypeExternalizer and, if successful, returns the added Type. |
void |
augment(java.net.URL aURL)
Augments the TypeExternalizer with the Type definitions contained in the URL passed as an argument. |
AbstractConverter |
createConverter(Tag convTag)
Creates a converter object initialized with the information stored in the passed tag. |
java.lang.Object |
createDataFromType(Tag dataTag)
Creates a typed data element from the data tag. |
protected Externalizer |
createNewExternalizer()
Returns a new externalizer for the generic type file. |
AbstractPropertyDescriptor |
createPropDescriptor(Tag theTag,
java.lang.String enclosingType,
boolean creatingType)
Creates a Property Descriptor object initialized with the information stored in the passed tag. |
void |
createType(Tag typeTag)
Creates a DSEType object initialized with the information stored in the passed Tag. |
protected Type |
createTypeInstance(Tag typeTag)
Returns a new DSEType instance initialized with the information stored in the typeTag. |
AbstractValidator |
createValidator(Tag valTag)
Creates a validator object initialized with the information stored in the valTag. |
void |
end()
Releases resources from this Externalizer. |
java.lang.Class |
findPDescriptorClass(java.lang.String tagName)
Finds the full class name of a descriptor by using its tag name and returns the class. |
static DataExternalizer |
getHelperExternalizer()
Returns the instance of the helperExternalizer. |
Type |
getType(java.lang.String name)
Returns the Type with the name passed as an argument. |
java.util.Enumeration |
getTypes()
Returns an Enumeration of all Types known to the TypeExternalizer. |
void |
initializeExternalizer()
creates the Types, the PropertyDescriptors, the Validators, and the Converters. |
protected void |
modifyTypeDefinition(Type oldType,
Tag newTypeTag)
Modifies an old Type instance with the definitions included in a newTypeTag. |
java.lang.String[] |
parseConvTypes(java.lang.String tempConvTypes)
Takes the convTypes string, parses it into substrings, and places them into a String array. |
java.lang.Object |
readObject(java.lang.String name)
Returns a business object for the Type with the name passed as an argument. |
protected void |
removeType(java.lang.String typeId)
Removes the Type. |
void |
reset()
Resets all the tags definitions and their associated type instances by reloading the Types file. |
void |
reset(java.util.Enumeration listTagId)
Resets the declaration of the tags whose tag ID appears in listTagId. |
void |
reset(java.lang.String tagId)
Resets the declaration of the tag with the tagId. |
void |
reset(java.lang.String tagId,
Externalizer newExternalizer)
Resets the declaration of the tag with id tagId. |
void |
resetErrorMsgsDynaInfoDelimiters()
Resets the shareDataDescriptors flag defined in the btt.xml. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static DataExternalizer helperExternalizer
Constructor Detail |
---|
public DSETypeExternalizer()
public DSETypeExternalizer(java.lang.String option, java.io.BufferedInputStream aIniFile) throws java.io.IOException
java.io.IOException
public DSETypeExternalizer(java.lang.String option, java.lang.String pathAndFile) throws java.io.IOException
java.io.IOException
public DSETypeExternalizer(java.net.URL aURL) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public Type addType(Type newType) throws DSETypeException
addType
in interface TypeExternalizer
newType
- Type
DSETypeException
- - Name of the Type to add is either null or a duplicatepublic void augment(java.net.URL aURL) throws DSETypeException
augment
in interface TypeExternalizer
aURL
- URL
DSETypeException
- - Augmentation was unsuccessfulpublic AbstractConverter createConverter(Tag convTag) throws DSETypeException
convTag
- - The tag containning the converter attributes
DSETypeException
public java.lang.Object createDataFromType(Tag dataTag) throws DSETypeException, DSEObjectNotFoundException, java.io.IOException
DSETypeException
DSEObjectNotFoundException
java.io.IOException
protected Externalizer createNewExternalizer() throws java.io.IOException, DSEObjectNotFoundException
java.io.IOException
DSEObjectNotFoundException
public AbstractPropertyDescriptor createPropDescriptor(Tag theTag, java.lang.String enclosingType, boolean creatingType) throws DSETypeException
theTag
- - The tag containning the descriptor attriubtesenclosingType
- - The type were the descriptor which is being created belongscreatingType
- - A boolean indicator that is true if we are creating a type
DSETypeException
public void createType(Tag typeTag) throws DSETypeException
typeTag
- - The Tag containing all the type's information
DSETypeException
protected Type createTypeInstance(Tag typeTag) throws DSETypeException
typeTag
- - The tag containing the type information
DSETypeException
public AbstractValidator createValidator(Tag valTag) throws DSETypeException
valTag
- - The tag containing the validator attributes
DSETypeException
public void end()
public java.lang.Class findPDescriptorClass(java.lang.String tagName) throws DSETypeException
tagName
- - The tag name
DSETypeException
public static DataExternalizer getHelperExternalizer()
public Type getType(java.lang.String name) throws DSETypeException
getType
in interface TypeExternalizer
name
- String
DSETypeException
- - Type requested is not foundpublic java.util.Enumeration getTypes()
getTypes
in interface TypeExternalizer
public void initializeExternalizer() throws DSETypeException
DSETypeException
protected void modifyTypeDefinition(Type oldType, Tag newTypeTag) throws DSETypeException
oldType
- com.ibm.btt.base.types.TypenewTypeTag
- com.ibm.btt.base.Tag
DSETypeException
- - If the type can not be modifiedpublic java.lang.String[] parseConvTypes(java.lang.String tempConvTypes) throws DSETypeException
tempConvTypes
- - The convTypes string
DSETypeException
public java.lang.Object readObject(java.lang.String name) throws DSETypeException
readObject
in interface TypeExternalizer
name
- String
DSETypeException
- Type requested is not found.protected void removeType(java.lang.String typeId)
typeId
- java.lang.String - The type to be removedpublic void reset() throws DSETypeException, DSEObjectNotFoundException, java.io.IOException
DSETypeException
java.io.IOException
DSEObjectNotFoundException
public void reset(java.lang.String tagId) throws java.io.IOException, DSEObjectNotFoundException, DSETypeException
tagId
- java.lang.String - The id of the tag to reset
java.io.IOException
DSEObjectNotFoundException
DSETypeException
- - If the Type instance associated to the tagId can not be resetpublic void reset(java.lang.String tagId, Externalizer newExternalizer) throws java.io.IOException, DSEObjectNotFoundException, DSETypeException
tagId
- java.lang.String - The id of the tag to reset
java.io.IOException
DSEObjectNotFoundException
DSETypeException
- - If the Type instance associated to the tagId can not be resetpublic void reset(java.util.Enumeration listTagId) throws java.io.IOException, DSEObjectNotFoundException, DSETypeException
listTagId
- java.util.Enumeration
java.io.IOException
DSEObjectNotFoundException
DSETypeException
public void resetErrorMsgsDynaInfoDelimiters()
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |