Java Code Examples for com.sun.corba.se.impl.util.Utility#tieNameForCompiler()

The following examples show how to use com.sun.corba.se.impl.util.Utility#tieNameForCompiler() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 2
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 3
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 4
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 5
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 6
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 7
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}
 
Example 8
void setStandardClassesInUse(CompoundType type,
                             boolean stub) throws IOException {

    // Reset our state...

    currentPackage = type.getPackageName();
    imports.clear();
    classesInUse.clear();
    namesInUse.clear();
    importCount = 0;
    castArray = false;

    // Add the top-level type...

    addClassInUse(type);

    // Set current class name...

    if (stub) {
        currentClass = Utility.stubNameForCompiler(type.getName());
    } else {
        currentClass = Utility.tieNameForCompiler(type.getName());
    }

    // Add current class...

    if (currentPackage == null) {
        addClassInUse(currentClass,currentClass,currentPackage);
    } else {
        addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage);
    }

    // Add standard classes...

    addClassInUse("javax.rmi.CORBA.Util");
    addClassInUse(idRemote.toString());
    addClassInUse(idRemoteException.toString());
    addClassInUse(idOutputStream.toString());
    addClassInUse(idInputStream.toString());
    addClassInUse(idSystemException.toString());
    addClassInUse(idJavaIoSerializable.toString());
    addClassInUse(idCorbaORB.toString());
    addClassInUse(idReplyHandler.toString());

    // Add stub/tie specific imports...

    if (stub) {
        addClassInUse(stubBaseClass);
        addClassInUse("java.rmi.UnexpectedException");
        addClassInUse(idRemarshalException.toString());
        addClassInUse(idApplicationException.toString());
        if (localStubs) {
            addClassInUse("org.omg.CORBA.portable.ServantObject");
        }
    } else {
        addClassInUse(type);
        addClassInUse(tieBaseClass);
        addClassInUse(idTieInterface.toString());
        addClassInUse(idBadMethodException.toString());
        addClassInUse(idPortableUnknownException.toString());
        addClassInUse(idJavaLangThrowable.toString());
    }
}