com.ibm.as400.access
Class QSYSObjectTypeTable

java.lang.Object
  extended by com.ibm.as400.access.QSYSObjectTypeTable

public class QSYSObjectTypeTable
extends Object

Maintains a list of object types and extended attributes for objects on the system.

For example, to list all possible extended attributes for the "FILE" object type.


String[] extendedAttributes = QSYSObjectTypeTable.getSupportedAttributes("FILE");
for(int i = 0; i < extendedAttributes.length; ++i)
{
System.out.println(QSYSObjectTypeTable.getLocalizedObjectType("FILE", extendedAttributes[i]));
}


Method Summary
Modifier and Type Method and Description
static String getLocalizedObjectType(String type)
          Returns a localized description of an object type.
static String getLocalizedObjectType(String type, String attribute)
          Returns a localized description of an object type.
static String[] getSupportedAttributes(String type)
          Returns a list of the supported extended attributes for an object type.
static String[] getSupportedObjectTypes()
          Returns a list of the supported object types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalizedObjectType

public static String getLocalizedObjectType(String type)
Returns a localized description of an object type.

Parameters:
type - The object type.
Returns:
The localized description.

getLocalizedObjectType

public static String getLocalizedObjectType(String type,
                                            String attribute)
Returns a localized description of an object type.

Parameters:
type - The object type.
attribute - The extended attribute, or null if none.
Returns:
The localized description, or the type name if no localized desription can be determined.

getSupportedAttributes

public static String[] getSupportedAttributes(String type)
Returns a list of the supported extended attributes for an object type.

Parameters:
type - The object type.
Returns:
The list of the supported extended attributes.

getSupportedObjectTypes

public static String[] getSupportedObjectTypes()
Returns a list of the supported object types.

Returns:
The list of the supported object types.