| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.util.RepoIDHelper
This class provides helper methods for repositiory id handling.
| Field Summary | |
| static int | TYPE_DEFAULT_FACTORYA default factory type (???). | 
| static int | TYPE_HELPERA helper class type (ITFHelper.java). | 
| static int | TYPE_HOLDERA holder class type (ITFHolder.java). | 
| static int | TYPE_IMPLBASEAn implbase class type (ITFImplBase.java (BOA)). | 
| static int | TYPE_OPERATIONSA operations class type (ITFOperations.java). | 
| static int | TYPE_PLAINA plain class type (ITF.java). | 
| static int | TYPE_POAA POA class type (ITFPOA.java). | 
| static int | TYPE_POATIEA POA tie class type (ITFPOATie.java). | 
| static int | TYPE_STUBA stub class type (ITFStub.java). | 
| static int | TYPE_TIEA tie class type (_ITFTie.java). | 
| Constructor Summary | |
| RepoIDHelper() | |
| Method Summary | |
| static boolean | checkID(java.lang.String id)This methods checks whether the passed repository identifier is valid or not. | 
| static boolean | checkIdentifier(java.lang.String name)This methods checks an indetifier for validity in the target language. | 
| static java.lang.Object | createIsATest(java.lang.String id)This returns an object which can be used to test if some other repository ID is an instance of this one. | 
| static java.lang.String | decorate(java.lang.String name,
         int type)This methods decorates a class name with the suffixes depending on the type of the class about to be created. | 
| static java.lang.String | idToClass(java.lang.String name)This method tries to extract the class name from the repository id. | 
| static java.lang.String | idToClass(java.lang.String name,
          int type)This method tries to extract the class name from the repository id. | 
| static java.lang.String | idToClassname(java.lang.String name)Convert the repository id to a class name. | 
| static java.lang.String | idToPackage(java.lang.String name)Extract the Java package name from the IDL repository identifier. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int TYPE_PLAIN
public static final int TYPE_STUB
public static final int TYPE_HELPER
public static final int TYPE_HOLDER
public static final int TYPE_DEFAULT_FACTORY
public static final int TYPE_OPERATIONS
public static final int TYPE_IMPLBASE
public static final int TYPE_POA
public static final int TYPE_POATIE
public static final int TYPE_TIE
| Constructor Detail | 
public RepoIDHelper()
| Method Detail | 
public static java.lang.String decorate(java.lang.String name,
                                        int type)
name - The class name to be decorated.type - The type of the class about to be created.public static boolean checkID(java.lang.String id)
id - The repository id to check.public static boolean checkIdentifier(java.lang.String name)
([a-z][A-Z])+([a-z][A-Z_][0-9])*.name - The identifier to check.public static java.lang.String idToPackage(java.lang.String name)
name - The repository id to extract the package name from.public static java.lang.String idToClassname(java.lang.String name)
name - The repository id to extract the class name from.public static java.lang.String idToClass(java.lang.String name)
name - The repository id name.
public static java.lang.String idToClass(java.lang.String name,
                                         int type)
name - The repository id name.type - The type of the class to create.public static java.lang.Object createIsATest(java.lang.String id)
Examples:
 RepoIDHelper.createIsATest( "IDL:MyObj:1.0" ).equals( 
         "IDL:MyObj:1.0" ) == true
 RepoIDHelper.createIsATest( "IDL:MyObj:1.1" ).equals(
         "IDL:MyObj:1.0" ) == true
 RepoIDHelper.createIsATest( "IDL:MyObj:1.0" ).equals(
         "IDL:MyObj:1.1" ) == false
 RepoIDHelper.createIsATest( "IDL:MyObj:2.0" ).equals(
         "IDL:MyObj:1.1" ) == false
 id - The repository id to test.| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||