com.tibco.cep.runtime.model

## Interface TypeManager

-     public interface TypeManager

  Manages the runtime types defined in a project.
  Since:
    2.0.0

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `TypeManager.TypeDescriptor` Describes the runtime corresponding to a type defined in a project.

  - ### Field Summary

    Fields
    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.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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(int typeId)` Returns a `TypeDescriptor` given the URI of the type resource in designer.
    `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.

- - ### Field Detail

    - #### DEFAULT_BE_NAMESPACE_URI

          static final java.lang.String DEFAULT_BE_NAMESPACE_URI

      Default namespace for the BE ontology - "www.tibco.com/be/ontology".
      Since:
        2.0.0
      See Also:
        Constant Field Values

    - #### TYPE_SIMPLEEVENT

          static final int TYPE_SIMPLEEVENT

      Matches simple events only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_TIMEEVENT

          static final int TYPE_TIMEEVENT

      Matches time events only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_CONCEPT

          static final int TYPE_CONCEPT

      Matches concepts only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_NAMEDINSTANCE

          static final int TYPE_NAMEDINSTANCE

      Matches scorecards only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_RULE

          static final int TYPE_RULE

      Matches rules only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_RULEFUNCTION

          static final int TYPE_RULEFUNCTION

      Matches rule functions only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_STATEMACHINE

          static final int TYPE_STATEMACHINE

      Matches state machines only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

    - #### TYPE_POJO

          static final int TYPE_POJO

      Matches state machines only.
      Since:
        2.0.0
      See Also:
        `TypeManager.getTypeDescriptors(int)`, Constant Field Values

  - ### Method Detail

    - #### getTypeDescriptors

          java.util.Collection getTypeDescriptors(int type)

      Gets all the `TypeDescriptor`'s for a given type.
      Parameters:
        `type` - the type of TypeDescriptor.
      Returns:
        All the `TypeDescriptor`'s of the given type.
      Since:
        2.0.0
      See Also:
        `TypeManager.TYPE_CONCEPT`, `TypeManager.TYPE_NAMEDINSTANCE`, `TypeManager.TYPE_RULE`, `TypeManager.TYPE_RULEFUNCTION`, `TypeManager.TYPE_SIMPLEEVENT`, `TypeManager.TYPE_TIMEEVENT`

    - #### getTypeDescriptor

          TypeManager.TypeDescriptor getTypeDescriptor(java.lang.Class cls)

      Returns the `TypeDescriptor` for the resource specified by the given `Class`.
      Parameters:
        `cls` - a `Class`.
      Returns:
        a `TypeDescriptor` that represents the type.
      Since:
        2.1.0

    - #### getTypeDescriptor

          TypeManager.TypeDescriptor getTypeDescriptor(com.tibco.xml.data.primitive.ExpandedName en)

      Returns the `TypeDescriptor` for the resource specified by the given `ExpandedName`.
      Parameters:
        `en` - an `ExpandedName`.
      Returns:
        a `TypeDescriptor` that represents the type.
      Since:
        2.0.0

    - #### getTypeDescriptor

          TypeManager.TypeDescriptor getTypeDescriptor(java.lang.String uri)

      Returns a `TypeDescriptor` given the URI of the type resource in designer.
      Parameters:
        `uri` - the full path as in repository.
      Returns:
        a `TypeDescriptor` that represents the type resource.
      Since:
        2.0.0

    - #### getTypeDescriptor

          TypeManager.TypeDescriptor getTypeDescriptor(int typeId)

      Returns a `TypeDescriptor` given the URI of the type resource in designer.
      Parameters:
        `uri` - the full path as in repository.
      Returns:
        a `TypeDescriptor` that represents the type resource.
      Since:
        2.0.0

    - #### createEntity

          Entity createEntity(com.tibco.xml.data.primitive.ExpandedName en)

      Creates an `Event` or a `Concept` given the `ExpandedName` of the type resource.
      Parameters:
        `en` - the `ExpandedName` of the entity to create.
      Returns:
        en `Entity` created.
      Throws:
        `java.lang.Exception` - if not able to create the instance.
      Since:
        2.0.0

    - #### createEntity

          Entity createEntity(java.lang.String uri)

      Creates an `Event` or a `Concept` instance given the URI of the type resource in Designer.
      Parameters:
        `uri` - the full path as in repository.
      Returns:
        the `Entity` created.
      Throws:
        `java.lang.Exception` - if not able to create the instance.