public interface MDataFactory
newInstance(String)
creates instances of
MInstance
, newSequence(String)
creates instances of MSequence
.
The MDataFactory
class is instantiated by the SDK
itself and can be accessed via the class registry.
See also Mapping of Type Names to Java Classes in TIBCO SDK Adapter Programmer's Guide which shows which primitive types map to Java types and which types require an instance of an SDK class.
Modifier and Type | Method and Description |
---|---|
MAssocList |
newAssocList()
Convenience method to create an
MAssocList . |
MAssocList |
newAssocList(boolean isTopLevel)
Convenience method to create an instance of
MAssocList . |
MData |
newData(MTree tree)
|
MInstance |
newInstance(com.tibco.infra.base.GlobalName className)
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
MInstance |
newInstance(com.tibco.infra.base.GlobalName className,
boolean isTopLevel)
Convenience method to create a class instance.
|
MInstance |
newInstance(java.lang.String className)
Convenience method to create a class instance.
|
MInstance |
newInstance(java.lang.String className,
boolean isTopLevel)
Convenience method to create a class instance.
|
MSequence |
newSequence(com.tibco.infra.base.GlobalName seqName)
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
MSequence |
newSequence(com.tibco.infra.base.GlobalName seqName,
boolean isTopLevel)
Convenience method to create an instance of
MSequence . |
MSequence |
newSequence(java.lang.String sequenceName)
Convenience method to create a sequence.
|
MSequence |
newSequence(java.lang.String seqName,
boolean isTopLevel)
Convenience method to create an instance of
MSequence . |
MUnion |
newUnion(com.tibco.infra.base.GlobalName unionName)
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
MUnion |
newUnion(com.tibco.infra.base.GlobalName unionName,
boolean isTopLevel)
Convenience method to create an instance of
MUnion . |
MUnion |
newUnion(java.lang.String unionName)
Convenience method to create a union.
|
MUnion |
newUnion(java.lang.String unionName,
boolean isTopLevel)
Convenience method to create an instance of
MUnion . |
MInstance newInstance(java.lang.String className) throws MConstructionException
className
- Name of a class (as specified in the repository)
from which an instance is to be created.MConstructionException
- On any failure to create the instanceMInstance newInstance(com.tibco.infra.base.GlobalName className) throws MConstructionException
MConstructionException
MSequence newSequence(java.lang.String sequenceName) throws MConstructionException
sequenceName
- Name of a sequence (as specified in the repository) for
which an instance is to be created.MConstructionException
- on any failure to create the sequenceMSequence newSequence(com.tibco.infra.base.GlobalName seqName) throws MConstructionException
MConstructionException
MUnion newUnion(java.lang.String unionName) throws MConstructionException
MConstructionException
- on any failure to create the sequenceMUnion
MUnion newUnion(com.tibco.infra.base.GlobalName unionName) throws MConstructionException
MConstructionException
MAssocList newAssocList() throws MConstructionException
MAssocList
.MConstructionException
- On any failure to create the sequenceMData newData(MTree tree) throws MConstructionException
MTree
into an MData
,
which can then be cast to MInstance
, MSequence
, or MUnion
.
The mapping table in Mapping of Type Names to Java Classes in the TIBCO Adapter SDK Programmer's Guide shows which primitive types map to Java types and which types require an instance of an SDK class.
tree
- MTree
that you want to convert to an MData
MConstructionException
- on any failure to deserialize.MInstance newInstance(com.tibco.infra.base.GlobalName className, boolean isTopLevel) throws MConstructionException
MConstructionException
MInstance newInstance(java.lang.String className, boolean isTopLevel) throws MConstructionException
MConstructionException
MSequence newSequence(com.tibco.infra.base.GlobalName seqName, boolean isTopLevel) throws MConstructionException
MSequence
.MConstructionException
MSequence newSequence(java.lang.String seqName, boolean isTopLevel) throws MConstructionException
MSequence
.MConstructionException
MUnion newUnion(com.tibco.infra.base.GlobalName unionName, boolean isTopLevel) throws MConstructionException
MUnion
.MConstructionException
MUnion newUnion(java.lang.String unionName, boolean isTopLevel) throws MConstructionException
MUnion
.MConstructionException
MAssocList newAssocList(boolean isTopLevel) throws MConstructionException
MAssocList
.MConstructionException