org.objectweb.jonas_ejb.lib
Class JormType
java.lang.Object
|
+--org.objectweb.jonas_ejb.lib.JormType
- public class JormType
- extends java.lang.Object
This class contains several methods to manipulate a PType.
- Author:
- Sebastien Chassande-Barrioz
Method Summary |
static short |
getCodingType(java.lang.Class c)
It retrieves a coding type either a Class |
static short |
getCodingType(int typeCode)
It converts a type code into a coding type. |
static short |
getCodingType(org.objectweb.jorm.type.api.PType pt)
It converts a PType into a coding type. |
static org.objectweb.jorm.type.api.PType |
getPType(java.lang.Class cl)
This method converts a java.lang.Class into a jorm PType. |
java.lang.String |
getPTypeDef(java.lang.Class cl)
This method converts a java.lang.Class into a jorm PType. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JormType
public JormType()
getPType
public static org.objectweb.jorm.type.api.PType getPType(java.lang.Class cl)
- This method converts a java.lang.Class into a jorm PType.
- Parameters:
cl
- is a java.lang.Class- Returns:
- The PType which matches the class specified in parameter.
getPTypeDef
public java.lang.String getPTypeDef(java.lang.Class cl)
- This method converts a java.lang.Class into a jorm PType.
- Parameters:
cl
- is a java.lang.Class- Returns:
- A String that represents The PType which matches the class.
getCodingType
public static short getCodingType(java.lang.Class c)
throws org.objectweb.jorm.naming.api.PExceptionNaming
- It retrieves a coding type either a Class
- Parameters:
the
- Class- Returns:
- a coding type wich matches to one of CTxxx fields of the
PNamingcontext interface.
- Throws:
org.objectweb.jorm.naming.api.PExceptionNaming
- when the class specified is not support in
the jorm naming.
getCodingType
public static short getCodingType(org.objectweb.jorm.type.api.PType pt)
throws org.objectweb.jorm.naming.api.PExceptionNaming
- It converts a PType into a coding type.
- Parameters:
a
- PType- Returns:
- a coding type wich matches to one of CTxxx fields of the
PNamingcontext interface.
- Throws:
org.objectweb.jorm.naming.api.PExceptionNaming
- when the PType specified is not support in
the jorm naming.
getCodingType
public static short getCodingType(int typeCode)
throws org.objectweb.jorm.naming.api.PExceptionNaming
- It converts a type code into a coding type.
- Parameters:
a
- type code of a PType- Returns:
- a coding type wich matches to one of CTxxx fields of the
PNamingcontext interface.
- Throws:
org.objectweb.jorm.naming.api.PExceptionNaming
- when the type code specified is not support in
the jorm naming.