public interface TypeManager
Modifier and Type | Interface and Description |
---|---|
static class |
TypeManager.TypeDescriptor
Describes the runtime corresponding to a type defined in a project.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BE_NAMESPACE_URI
Default namespace for the BE ontology - "www.tibco.com/be/ontology".
|
static int |
TYPE_CONCEPT
Matches concepts only.
|
static int |
TYPE_NAMEDINSTANCE
Matches scorecards only.
|
static int |
TYPE_POJO
Matches state machines only.
|
static int |
TYPE_RULE
Matches rules only.
|
static int |
TYPE_RULEFUNCTION
Matches rule functions only.
|
static int |
TYPE_SIMPLEEVENT
Matches simple events only.
|
static int |
TYPE_STATEMACHINE
Matches state machines only.
|
static int |
TYPE_TIMEEVENT
Matches time events only.
|
Modifier and Type | Method and Description |
---|---|
Entity |
createEntity(com.tibco.xml.data.primitive.ExpandedName en)
Creates an
Event or a Concept given the ExpandedName of the type resource. |
Entity |
createEntity(java.lang.String uri)
Creates an
Event or a Concept instance given the URI of the type resource in Designer. |
TypeManager.TypeDescriptor |
getTypeDescriptor(java.lang.Class cls)
Returns the
TypeDescriptor for the resource specified by the given Class . |
TypeManager.TypeDescriptor |
getTypeDescriptor(com.tibco.xml.data.primitive.ExpandedName en)
Returns the
TypeDescriptor for the resource specified by the given ExpandedName . |
TypeManager.TypeDescriptor |
getTypeDescriptor(java.lang.String uri)
Returns a
TypeDescriptor given the URI of the type resource in designer. |
java.util.Collection |
getTypeDescriptors(int type)
Gets all the
TypeDescriptor 's for a given type. |
static final java.lang.String DEFAULT_BE_NAMESPACE_URI
static final int TYPE_SIMPLEEVENT
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_TIMEEVENT
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_CONCEPT
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_NAMEDINSTANCE
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_RULE
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_RULEFUNCTION
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_STATEMACHINE
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesstatic final int TYPE_POJO
TypeManager.getTypeDescriptors(int)
,
Constant Field Valuesjava.util.Collection getTypeDescriptors(int type)
TypeDescriptor
's for a given type.type
- the type of TypeDescriptor.TypeDescriptor
's of the given type.TypeManager.TYPE_CONCEPT
,
TypeManager.TYPE_NAMEDINSTANCE
,
TypeManager.TYPE_RULE
,
TypeManager.TYPE_RULEFUNCTION
,
TypeManager.TYPE_SIMPLEEVENT
,
TypeManager.TYPE_TIMEEVENT
TypeManager.TypeDescriptor getTypeDescriptor(java.lang.Class cls)
TypeDescriptor
for the resource specified by the given Class
.cls
- a Class
.TypeDescriptor
that represents the type.TypeManager.TypeDescriptor getTypeDescriptor(com.tibco.xml.data.primitive.ExpandedName en)
TypeDescriptor
for the resource specified by the given ExpandedName
.en
- an ExpandedName
.TypeDescriptor
that represents the type.TypeManager.TypeDescriptor getTypeDescriptor(java.lang.String uri)
TypeDescriptor
given the URI of the type resource in designer.uri
- the full path as in repository.TypeDescriptor
that represents the type resource.Entity createEntity(com.tibco.xml.data.primitive.ExpandedName en)
Event
or a Concept
given the ExpandedName
of the type resource.en
- the ExpandedName
of the entity to create.Entity
created.java.lang.Exception
- if not able to create the instance.Entity createEntity(java.lang.String uri)
Event
or a Concept
instance given the URI of the type resource in Designer.uri
- the full path as in repository.Entity
created.java.lang.Exception
- if not able to create the instance.