Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 6 Metadata : Metadata Class Names

Metadata Class Names
The TIBCO Adapter SDK metadata class name used in an API call can be either the full name or the short name:
Full Name  Each object managed by the repository has a name, called the full name because it is fully qualified. An object's full name is the concatenation of its name with the names of all its parent directories, separated by forward slash ("/") characters. Names are case sensitive.
To refer to the object myClass, use the full name /tibco/public/class/ae/myClass.
Using full name relieves the need to specify loadURL in the configuration because the global path specifies exactly from where to load the class description.
Short Name  Each object's name is referred to as the short name of that object.
In the above example, the short name would be myClass. Without the parent directories concatenated, all short names must be unique. Otherwise, SDK will use the last definition in the repository, irrespective of the loadURL order.
A sequence class using the sequence[element] name notation is a special case of short name for SDK. This notation gives a self-describing type name, so by default, even without loadURL specification, SDK looks for the class description under the /tibco/public/sequence/ae path.
Only sequences using sequence[myclass] need to be under this particular path. This is because the path itself tells SDK where to look for sequence element type myclass.
To illustrate, a sequence with following path
/tibco/public/sequence/ae/class/ae/sequence[foo]
means that class foo can be found using following path
/tibco/public/class/ae/foo
So this requirement is valid only if the adapter is using the SDK 2.x configuration XML notation of the name sequence[myClass]. Possible sources of such notation are the schema generation tool shipped with TIBCO Adapters and migrated configuration from SDK 2.x. This requirement is not valid if the schema is created through TIBCO Designer because the XML configuration for SDK specifies an elementType attribute, which specifies where the sequence element type is to be found. The elementType attribute allows the use of an arbitrary sequence class name (that is, mySequenceClassOfFoo).

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved