Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util
Class ISeriesMiscUtil

java.lang.Object
  extended by com.ibm.etools.iseries.util.ISeriesMiscUtil

public class ISeriesMiscUtil
extends Object

Misc helper methods for use by other iSeries specific classes.


Field Summary
static String Copyright
           
 
Method Summary
static String addApostrophesIfRequired(String string)
          Create a valid parameter String for use in iSeries commands.
static int getObjectTypeSortPosition(String type)
          Objects need to be sorted based on their type and name.
static String substitute(String str, int num, String val)
          Replaces substitution values for strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Method Detail

substitute

public static String substitute(String str,
                                int num,
                                String val)
Replaces substitution values for strings


addApostrophesIfRequired

public static String addApostrophesIfRequired(String string)
Create a valid parameter String for use in iSeries commands. If the String contains non-alphanumeric characters then the String is enclosed in ' and all ' will be escaped with another '. Otherwise the original String is returned.


getObjectTypeSortPosition

public static int getObjectTypeSortPosition(String type)
Objects need to be sorted based on their type and name. This method returns the sort order for the type. Would it be quicker to store these as a hashtable?


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.