com.ibm.as400.access

Class 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 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.