public class MClassRegistry extends MRegistry
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable |
associations |
protected MXsdRegistry |
m_xsdRegistry |
Constructor and Description |
---|
MClassRegistry(MClassFactory customClassFact,
MDataFactory customDataFact)
Internal use only - DON'T DOCUMENT
|
MClassRegistry(MPropertiesRegistry p_propertiesRegistry)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAssociationDescription(MAssociationDescription assocDesc)
Internal use only - DON'T DOCUMENT
|
boolean |
addClassDescription(MClassDescription classDesc)
Internal use only - DON'T DOCUMENT
|
void |
addMetadataSearchUrl(java.lang.String url)
Internal use only - DON'T DOCUMENT
|
void |
addToSearchPath(java.lang.String pathString)
Internal use only - DON'T DOCUMENT
|
void |
clear()
Clear the registry
|
protected MSequenceDescription |
createSequenceClassDescriptionFromGlobalName(java.lang.String p_globalName) |
protected MSequenceDescription |
createSequenceClassDescriptionFromShortName(java.lang.String p_shortName) |
void |
destroy()
internal use - do not document
|
java.util.Enumeration |
getAssociationDescriptions()
Enumerate over the list of associations currently contained in the registry.
|
java.util.Enumeration |
getAssociationNames()
Enumerate over the list of contained associations to the objects.
|
MClassDescription |
getClassDescription(com.tibco.infra.base.GlobalName globalName)
Deprecated.
as of Adapter SDK Version 5.0.0
|
MClassDescription |
getClassDescription(java.lang.String name)
Retrieve the class with the given name.
|
protected MClassDescription |
getClassDescriptionByShortName(java.lang.String name)
Internal use only - DON'T DOCUMENT
|
java.util.Enumeration |
getClassDescriptions()
Enumerate over the list of classes currently contained in the registry.
|
MClassFactory |
getClassFactory()
Return a class factory.
|
java.util.Enumeration |
getClassNames()
Enumerate over the list of keys to the objects.
|
protected int |
getContainedClassName(java.lang.String p_className,
java.lang.String[] p_containedClassName) |
MDataDeserializer |
getDataDeserializer() |
MDataDeserializer |
getDataDeserializerByMessageFormat(int messageFormat) |
MDataFactory |
getDataFactory()
Return a data factory.
|
MDataSerializer |
getDataSerializer() |
MDataSerializer |
getDataSerializerByMessageFormat(int messageFormat) |
int |
getDefaultMessageForamt() |
protected java.lang.String |
getInnerMostClassName(java.lang.String p_className)
Internal use only - DON'T DOCUMENT
|
MMetaDataDeserializer |
getMetaDataDeserializer()
Internal use only - DON'T DOCUMENT
|
java.util.Enumeration |
getMetadataSearchUrls()
Internal use only - DON'T DOCUMENT
|
MMetaDataSerializer |
getMetaDataSerializer()
Internal use only - DON'T DOCUMENT
|
static MPrimitiveClassDescription |
getPrimitiveClassDescription(java.lang.String className)
This method is used to get PrimitveClassdescriptions from ClassRegistry
this method can be used for featching classdescriptions.
|
java.util.Enumeration |
getSearchPathElements()
Internal use only - DON'T DOCUMENT
|
java.util.Vector |
getSearchPathStore()
Internal use only - DON'T DOCUMENT
|
java.lang.String |
getXSD(java.lang.String className)
Retrieve the Xsd which contains the passed class name.
|
MXsdRegistry |
getXsdRegistry()
Internal use only - DON'T DOCUMENT
|
boolean |
hasClassDescription(com.tibco.infra.base.GlobalName globalName)
Deprecated.
as of Adapter SDK Version 5.0.0
|
boolean |
hasClassDescription(java.lang.String name)
Determine whether the registry holds a class description with
given name.
|
protected MClassDescription |
lazyGetClassDescription(java.lang.String p_name) |
protected MClassDescription |
lookupClassDescription(java.lang.String p_name) |
MAssociationDescription |
removeAssociationDescription(java.lang.String fullpathName)
Internal use only - DON'T DOCUMENT
|
MClassDescription |
removeClassDescription(com.tibco.infra.base.GlobalName globalName)
Internal use only - DON'T DOCUMENT
|
MClassDescription |
removeClassDescription(java.lang.String fullpathName)
Internal use only - DON'T DOCUMENT
|
void |
saveMetaDescription(MMetaDescription md)
Internal use only - DON'T DOCUMENT
|
void |
setDefaultMessageFormat(int messageFormat) |
void |
setMetaDataDeserializer(MMetaDataDeserializer metadataDeserializer)
Internal use only - DON'T DOCUMENT
|
void |
setMetaDataSerializer(MMetaDataSerializer metadataSerializer)
Internal use only - DON'T DOCUMENT
|
void |
setupXsdRegistry(MPropertiesRegistry p_propertiesRegistry)
Internal use only - DON'T DOCUMENT
|
void |
setXsdGenerationFlag(boolean xsdGenerationFlag) |
boolean |
xsdGenerationFlag() |
elements, getTypedObject, keys, putObject, removeObject, removeObject
protected java.util.Hashtable associations
protected MXsdRegistry m_xsdRegistry
public MClassRegistry(MPropertiesRegistry p_propertiesRegistry)
public MClassRegistry(MClassFactory customClassFact, MDataFactory customDataFact)
Constructor -- allows for custom class and data factories.
customClassFact
- the class factory that this MClassRegistry
will use. If null, the default class factory will be used.customDataFact
- the data factory that this MClassRegistry
will use. If null, the default data factory will be used.public boolean hasClassDescription(java.lang.String name)
public boolean hasClassDescription(com.tibco.infra.base.GlobalName globalName)
public MClassDescription getClassDescription(java.lang.String name)
public java.lang.String getXSD(java.lang.String className)
className
- fully qualified AE class namepublic java.util.Enumeration getClassDescriptions()
Enumeration.nextElement()
can be cast to MClassDescription
.public java.util.Enumeration getClassNames()
Enumeration.nextElement()
can be cast to String
.public MClassFactory getClassFactory()
public MDataFactory getDataFactory()
public MXsdRegistry getXsdRegistry()
Remove the association (if any) based on the given name, which must in full path.
public void setupXsdRegistry(MPropertiesRegistry p_propertiesRegistry)
public boolean addClassDescription(MClassDescription classDesc)
Add a class description. If there is a name collision, this operation is a no-op; false is returned.
public java.util.Enumeration getAssociationDescriptions()
public java.util.Enumeration getAssociationNames()
public boolean addAssociationDescription(MAssociationDescription assocDesc)
Add an association description. If there is a name collision, this operation is a no-op; false is returned.
public MAssociationDescription removeAssociationDescription(java.lang.String fullpathName)
Remove the association (if any) based on the given name, which must in full path.
public MClassDescription removeClassDescription(com.tibco.infra.base.GlobalName globalName)
Remove the class with given name, if any.
public MClassDescription removeClassDescription(java.lang.String fullpathName)
Remove the class with given name, if any.
public MClassDescription getClassDescription(com.tibco.infra.base.GlobalName globalName)
public void setDefaultMessageFormat(int messageFormat)
public int getDefaultMessageForamt()
public void setXsdGenerationFlag(boolean xsdGenerationFlag)
public boolean xsdGenerationFlag()
protected MClassDescription lookupClassDescription(java.lang.String p_name) throws MException
MException
protected MClassDescription lazyGetClassDescription(java.lang.String p_name) throws MException
MException
protected MClassDescription getClassDescriptionByShortName(java.lang.String name) throws MException
Utility method for searching classes based on unprefixed short name
MException
protected java.lang.String getInnerMostClassName(java.lang.String p_className) throws MException
get the inner most contained class based on short sequence name
MException
protected int getContainedClassName(java.lang.String p_className, java.lang.String[] p_containedClassName)
protected MSequenceDescription createSequenceClassDescriptionFromShortName(java.lang.String p_shortName) throws MException
MException
protected MSequenceDescription createSequenceClassDescriptionFromGlobalName(java.lang.String p_globalName) throws MException
MException
public static MPrimitiveClassDescription getPrimitiveClassDescription(java.lang.String className)
public MMetaDataDeserializer getMetaDataDeserializer()
Assessor on metadata-deserializer,which is normally set by MApp
public void setMetaDataDeserializer(MMetaDataDeserializer metadataDeserializer)
This method set deserializer used to read metadata from either Repo or other source
public MMetaDataSerializer getMetaDataSerializer()
Accessor on metadata serializer used for writing metadata info back in Repo or XML which is normally set by MApp
public void setMetaDataSerializer(MMetaDataSerializer metadataSerializer)
Basically set format for storing schema info either Repository or XML
public void destroy()
clear this registry and destroy it.
public java.util.Enumeration getMetadataSearchUrls()
Enumerate over the list of search URLs defined in the deployment configuration file
public void addMetadataSearchUrl(java.lang.String url)
Store away the URL where metadata can be loaded in later
public java.util.Enumeration getSearchPathElements()
Enumeration over search path
public java.util.Vector getSearchPathStore()
search path store
public void addToSearchPath(java.lang.String pathString)
search path store
public MDataSerializer getDataSerializer() throws MException
MException
public MDataDeserializer getDataDeserializer() throws MException
MException
public MDataSerializer getDataSerializerByMessageFormat(int messageFormat) throws MException
MException
public MDataDeserializer getDataDeserializerByMessageFormat(int messageFormat) throws MException
MException
public void saveMetaDescription(MMetaDescription md) throws MException
save the metadata into repository
MException