com.ibm.as400.access
Class QSYSObjectTypeTable
- java.lang.Object
-
- com.ibm.as400.access.QSYSObjectTypeTable
-
public class QSYSObjectTypeTable extends java.lang.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
Methods Modifier and Type Method and Description static java.lang.String
getLocalizedObjectType(java.lang.String type)
Returns a localized description of an object type.static java.lang.String
getLocalizedObjectType(java.lang.String type, java.lang.String attribute)
Returns a localized description of an object type.static java.lang.String[]
getSupportedAttributes(java.lang.String type)
Returns a list of the supported extended attributes for an object type.static java.lang.String[]
getSupportedObjectTypes()
Returns a list of the supported object types.
-
-
-
Method Detail
-
getLocalizedObjectType
public static java.lang.String getLocalizedObjectType(java.lang.String type)
Returns a localized description of an object type.- Parameters:
type
- The object type.- Returns:
- The localized description.
-
getLocalizedObjectType
public static java.lang.String getLocalizedObjectType(java.lang.String type, java.lang.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 java.lang.String[] getSupportedAttributes(java.lang.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 java.lang.String[] getSupportedObjectTypes()
Returns a list of the supported object types.- Returns:
- The list of the supported object types.
-
-