|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.types.DSETypeExternalizer
This class provides an implementation of the TypeExternalizer interface and is responsible for maintaining a registry of all known Types, indexed by name.
Fields inherited from interface com.ibm.dse.base.types.TypeConstants |
CONV_TYPE_DEFAULT,
CONV_TYPE_HOST,
CONV_TYPE_OUTPUT,
CONV_TYPE_SER,
CONV_TYPE_XML,
disabled,
hidden,
isDisabled,
isHidden,
isMandatory,
isOmitted,
isReadOnly,
mandatory,
omitted,
readOnly,
TYPE_DEFAULT,
TYPE_REGISTRY_INIT_SIZE |
Constructor Summary | |
DSETypeExternalizer()
This constructor creates a 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 URL given |
Method Summary | |
Type |
addType(Type newType)
Adds the Type passed as argument to the registry of Types known to the TypeExternalizer and if successful, the Type added is returned. |
void |
augment(java.net.URL aURL)
Augments the TypeExternalizer with the Type definitions contained in the URL passed as argument, throwing an appropriate exception if unsuccessful. |
AbstractConverter |
createConverter(Tag convTag)
This method creates a converter object which is initialized with the information stored in the 'convTag' |
java.lang.Object |
createDataFromType(Tag dataTag)
Creates a typed data element from a data tag. |
protected Externalizer |
createNewExternalizer()
Returns a new externalizer for the generic type file. |
AbstractPropertyDescriptor |
createPropDescriptor(Tag theTag,
java.lang.String enclosingType,
boolean creatingType)
This method creates a Property Descriptor object which is initialized with the information stored in the 'theTag'. |
void |
createType(Tag typeTag)
This method creates a DSEType object which is initialized with the information stored in the 'typeTag' |
protected Type |
createTypeInstance(Tag typeTag)
This method returns a new DSEType instance which is initialized with the information stored in the 'typeTag'. |
AbstractValidator |
createValidator(Tag valTag)
This method creates a validator object which is initialized with the information stored in the 'valTag' |
void |
end()
Releases resources from this Externalizer. |
java.lang.Class |
findPDescriptorClass(java.lang.String tagName)
This method will take the prefix of tagName and concatenate it with "PropertyDescriptor". |
static DataExternalizer |
getHelperExternalizer()
Returns the instance of the helperExternalizer. |
Type |
getType(java.lang.String name)
Returns the Type with the name passed as argument. |
java.util.Enumeration |
getTypes()
Returns an Enumeration of all Types known to the TypeExternalizer. |
void |
initializeExternalizer()
This method is called after the helper externalizer has read the Typed Data file into a Tag structure in memory. |
protected void |
modifyTypeDefinition(Type oldType,
Tag newTypeTag)
Modifies an old Type instance with the definitions included in a new Type Tag |
java.lang.String[] |
parseConvTypes(java.lang.String tempConvTypes)
This method will take the convTypes string and parse it into substrings and place 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 argument. |
protected void |
removeType(java.lang.String typeId)
Removes a 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 tags which tag id appears in listTagId. |
void |
reset(java.lang.String tagId)
Resets the declaration of the tag with id tagId. |
protected void |
reset(java.lang.String tagId,
Externalizer newExternalizer)
Resets the declaration of the tag with id tagId. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DSETypeExternalizer()
public DSETypeExternalizer(java.lang.String option, java.io.BufferedInputStream aIniFile) throws java.io.IOException
public DSETypeExternalizer(java.lang.String option, java.lang.String pathAndFile) throws java.io.IOException
public DSETypeExternalizer(java.net.URL aURL) throws java.io.IOException
Method Detail |
public Type addType(Type newType) throws DSETypeException
newType
- Typepublic void augment(java.net.URL aURL) throws DSETypeException
typeDefinitionsAsXML
- URLpublic AbstractConverter createConverter(Tag convTag) throws DSETypeException
public java.lang.Object createDataFromType(Tag dataTag) throws DSETypeException, DSEObjectNotFoundException, java.io.IOException
aTag
- com.ibm.dse.base.Tagprotected Externalizer createNewExternalizer() throws java.io.IOException, DSEObjectNotFoundException
public AbstractPropertyDescriptor createPropDescriptor(Tag theTag, java.lang.String enclosingType, boolean creatingType) throws DSETypeException
public void createType(Tag typeTag) throws DSETypeException
protected Type createTypeInstance(Tag typeTag) throws DSETypeException
public AbstractValidator createValidator(Tag valTag) throws DSETypeException
public void end()
public java.lang.Class findPDescriptorClass(java.lang.String tagName) throws DSETypeException
public static DataExternalizer getHelperExternalizer()
public Type getType(java.lang.String name) throws DSETypeException
name
- Stringpublic java.util.Enumeration getTypes()
public void initializeExternalizer() throws DSETypeException
protected void modifyTypeDefinition(Type oldType, Tag newTypeTag) throws DSETypeException
oldType
- com.ibm.dse.base.types.TypenewTypeTag
- com.ibm.dse.base.Tagpublic java.lang.String[] parseConvTypes(java.lang.String tempConvTypes) throws DSETypeException
public java.lang.Object readObject(java.lang.String name) throws DSETypeException
This business object is populated with the default data for the Type requested. Collabrotes with Type. Compond Types return a KeyedCollection, Simple Types return a DataField with a business object as value.
name
- Stringprotected void removeType(java.lang.String typeId)
typeId
- java.lang.StringnewType
- com.ibm.dse.base.types.Typepublic void reset() throws DSETypeException, DSEObjectNotFoundException, java.io.IOException
public void reset(java.lang.String tagId) throws java.io.IOException, DSEObjectNotFoundException, DSETypeException
tagId
- java.lang.String The id of the tag to reset.protected 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.public void reset(java.util.Enumeration listTagId) throws java.io.IOException, DSEObjectNotFoundException, DSETypeException
listTagId
- java.util.Enumeration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |