Using RAD Enumeration Types in Java

To access an enumerated type, import the generated class and interact with the enumeration.

Example 2-24 Java Language – Using RAD Enumerations

import com.oracle.solaris.rad.zonemgr.ErrorCode;

System.out.println(ErrorCode.NONE);
System.out.println(ErrorCode.COMMAND_ERROR);