Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.projects.core
Class IBMiProjectUtil

java.lang.Object
  extended by com.ibm.etools.iseries.projects.core.IBMiProjectUtil

public class IBMiProjectUtil
extends Object

Utility methods on i Projects


Field Summary
static int LEVEL_1
           
static int LEVEL_2
           
static String PROJECT_PROPERTIES_FILE
           
 
Constructor Summary
IBMiProjectUtil()
           
 
Method Summary
static boolean hasISeriesNature(IPath projectDescriptionFile)
          Tests if the project has the iSeriesProject nature.
static boolean hasISeriesNature(IProject project)
          Tests if the project has the iSeriesProject nature.
static boolean isUsingMetadataLevel(int level, IProject project)
          Given the level of metadata format desired, this function will return whether the given project is using that level of metadata.
static boolean isUsingNewPropertiesModel(IProject project)
          Return whether this project is still using the new .properties type properties model
static boolean isUsingOldPropertiesModel(IProject project)
          Return whether this project is still using the old .xml type properties model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_PROPERTIES_FILE

public static final String PROJECT_PROPERTIES_FILE
See Also:
Constant Field Values

LEVEL_1

public static final int LEVEL_1
See Also:
Constant Field Values

LEVEL_2

public static final int LEVEL_2
See Also:
Constant Field Values
Constructor Detail

IBMiProjectUtil

public IBMiProjectUtil()
Method Detail

hasISeriesNature

public static final boolean hasISeriesNature(IProject project)
Tests if the project has the iSeriesProject nature.

Parameters:
project - The IPproject we want to make sure is an i Project
Returns:
true if we have successfully determined that this project is an i Project. An error will cause a return value of false.

hasISeriesNature

public static final boolean hasISeriesNature(IPath projectDescriptionFile)
Tests if the project has the iSeriesProject nature.

Parameters:
projectDescriptionFile - the path to the project description file on the local file system that we want to make sure describes an i Project
Returns:
true if we have successfully determined that this project description file is for an i Project. An error will cause a return value of false.

isUsingMetadataLevel

public static boolean isUsingMetadataLevel(int level,
                                           IProject project)
Given the level of metadata format desired, this function will return whether the given project is using that level of metadata.

Parameters:
level - can be LEVEL_1 or LEVEL_2
project - the project whose metadata level we are querying.
Returns:

isUsingNewPropertiesModel

public static boolean isUsingNewPropertiesModel(IProject project)
Return whether this project is still using the new .properties type properties model

Parameters:
project - - the IProject in question
Returns:
true if the project still has the new .properties type properties at least for the project level.

isUsingOldPropertiesModel

public static boolean isUsingOldPropertiesModel(IProject project)
Return whether this project is still using the old .xml type properties model

Parameters:
project - - the IProject in question
Returns:
true if the project still has the old .xml type properties at least for the project level.

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.