< prev index next >

src/java.corba/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/Arguments.java

Print this page




 243    **/
 244   // XXX Either generalize this facility or remove it completely.
 245   protected void packageFromProps (Properties props) throws InvalidArgument
 246   {
 247     Enumeration propsEnum = props.propertyNames ();
 248     while (propsEnum.hasMoreElements ())
 249     {
 250       String prop = (String)propsEnum.nextElement ();
 251       if (prop.startsWith ("PkgPrefix."))
 252       {
 253         String type = prop.substring (10);
 254         String pkg = props.getProperty (prop);
 255         checkPackageNameValid( pkg ) ;
 256         checkPackageNameValid( type ) ;
 257         packages.put (type, pkg);
 258       }
 259     }
 260   } // packageFromProps
 261 
 262   /**
 263    * d57482 <klr> method added so default emitter check could be overriden.
 264    **/
 265   protected void setDefaultEmitter () {
 266       // If the flag -fclient was not found, assume it.
 267       if (emit == None) emit = Client;
 268   }
 269 
 270   protected void setNameModifiers( String skeletonPattern,
 271     String tiePattern ) {
 272     if (emit>Client) {
 273         String tp ;
 274         String sp ;
 275 
 276         if (skeletonPattern != null)
 277             sp = skeletonPattern ;
 278         else if (POAServer)
 279             sp = "%POA" ;
 280         else
 281             sp = "_%ImplBase" ;
 282 
 283         if (tiePattern != null)




 243    **/
 244   // XXX Either generalize this facility or remove it completely.
 245   protected void packageFromProps (Properties props) throws InvalidArgument
 246   {
 247     Enumeration propsEnum = props.propertyNames ();
 248     while (propsEnum.hasMoreElements ())
 249     {
 250       String prop = (String)propsEnum.nextElement ();
 251       if (prop.startsWith ("PkgPrefix."))
 252       {
 253         String type = prop.substring (10);
 254         String pkg = props.getProperty (prop);
 255         checkPackageNameValid( pkg ) ;
 256         checkPackageNameValid( type ) ;
 257         packages.put (type, pkg);
 258       }
 259     }
 260   } // packageFromProps
 261 
 262   /**
 263    * d57482 {@literal <klr>} method added so default emitter check could be overriden.
 264    **/
 265   protected void setDefaultEmitter () {
 266       // If the flag -fclient was not found, assume it.
 267       if (emit == None) emit = Client;
 268   }
 269 
 270   protected void setNameModifiers( String skeletonPattern,
 271     String tiePattern ) {
 272     if (emit>Client) {
 273         String tp ;
 274         String sp ;
 275 
 276         if (skeletonPattern != null)
 277             sp = skeletonPattern ;
 278         else if (POAServer)
 279             sp = "%POA" ;
 280         else
 281             sp = "_%ImplBase" ;
 282 
 283         if (tiePattern != null)


< prev index next >