|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.tibco.tibrv.badhnati.descriptors.Message
public class Message
Contains the various descriptors required to generate the descriptors of an ActiveEnterprise v3.0 compliant message
Constructor Summary | |
---|---|
Message()
Default constructor, does nothing. |
|
Message(IRepoGenerator pRepoGenerator)
Convenience constructor for assigning the TIB/Repository generator |
Method Summary | |
---|---|
java.lang.Integer |
addPackage(java.lang.String pClassPackage)
Adds a given java package to the list of the currently referenced packages, if necessary. |
int |
addReference(java.lang.String pClassName)
Add a class reference that isn't a collection. |
int |
addReference(java.lang.String pClassName,
java.lang.String pCollectionType)
Add a class reference that is a collection. |
static java.lang.String |
extractClassName(java.lang.String pClassName)
Extracts the name of a given fully qualified java class name. |
static java.lang.String |
extractPackage(java.lang.String pClassName)
Extracts the name of a given fully qualified package. |
java.lang.String |
get(int pPosition)
Extract the nth element from the contained references. |
java.lang.String |
get(java.lang.Integer pPosition)
Extract the nth element from the contained references. |
ClassElement |
get(java.lang.String pClassName)
Searches for a element given it's name. |
ClassElement |
get(java.lang.String pClassName,
java.lang.String pCollectionType)
Searches for a element given it's name. |
int |
getNbPackages()
The number of different TIB/Repository directories identified. |
java.util.HashMap |
getReferencedClasses()
All the classes contained within this message |
IRepoGenerator |
getRepoGenerator()
Retrieves the utility component in relation with the TIB/Repository. |
void |
setReferencedClasses(java.util.HashMap pReferencedClasses)
Assign directly the class contained by this message |
void |
setRepoGenerator(IRepoGenerator pRepoGenerator)
Defines the utility component in relation with the TIB/Repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message()
public Message(IRepoGenerator pRepoGenerator)
pRepoGenerator
- the repository generator instance.Method Detail |
---|
public IRepoGenerator getRepoGenerator()
public void setRepoGenerator(IRepoGenerator pRepoGenerator)
pRepoGenerator
- the repository generator instance.public java.util.HashMap getReferencedClasses()
public void setReferencedClasses(java.util.HashMap pReferencedClasses) throws RaccoonException
pReferencedClasses
- the hash map of ClassElement
RaccoonException
- if the reference classes contained by this instance isn't an empty listpublic int addReference(java.lang.String pClassName) throws RaccoonException
pClassName
- the fully qualified name of the class obtained via getClass().getName()
RaccoonException
- if the RepoGenerator throws an error or if the reference couldn't be addedpublic java.lang.Integer addPackage(java.lang.String pClassPackage)
pClassPackage
- the java package to add to the list.
Integer
of the java package.public int addReference(java.lang.String pClassName, java.lang.String pCollectionType) throws RaccoonException
pClassName
- the fully qualified name of the class obtained via getClass().getName()pCollectionType
- the fully qualified name of the elements contained by the class pClassName
obtained via getClass().getName() on an element.
RaccoonException
- if the RepoGenerator throws an error or if the reference couldn't be addedpublic java.lang.String get(int pPosition)
pPosition
- the element to retrieve, where 0 is the first element.
null
if not presentpublic java.lang.String get(java.lang.Integer pPosition)
pPosition
- the element to retrieve, where 0 is the first element.
null
if not presentpublic int getNbPackages()
public ClassElement get(java.lang.String pClassName)
pClassName
- the element to retrieve, a none collection element
null
if not presentpublic ClassElement get(java.lang.String pClassName, java.lang.String pCollectionType)
pClassName
- the element to retrieve, a none collection elementpCollectionType
- the type of element this collections contains.
null
if not presentpublic static java.lang.String extractClassName(java.lang.String pClassName)
pClassName
- the fully qualified java class name
public static java.lang.String extractPackage(java.lang.String pClassName)
pClassName
- the fully qualified java class name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |