Enum ReturnCode

    • Enum Constant Detail

      • RC_OK

        public static final ReturnCode RC_OK
        Return code indicating command completed successfully, 0.
      • RC_INIT

        public static final ReturnCode RC_INIT
        Return code indicating an initialization error, 1.
      • RC_IO

        public static final ReturnCode RC_IO
        Return code indicating an error reading files, 2.
      • RC_MALFORMED_XML

        public static final ReturnCode RC_MALFORMED_XML
        Return code indicating the input XML was not well formed, 3.
      • RC_INVALID_XML

        public static final ReturnCode RC_INVALID_XML
        Return code indicating input XML was not valid, 4.
      • RC_INVALID_XS

        public static final ReturnCode RC_INVALID_XS
        Return code indicating an error validating the XML, 5.
      • RC_INVALID_CRED

        public static final ReturnCode RC_INVALID_CRED
        Return code indicating an error reading the credentials, 6.
      • RC_SIG

        public static final ReturnCode RC_SIG
        Return code indicating indicating that signing or signature verification failed, 7.
      • RC_NOHOME

        public static final ReturnCode RC_NOHOME
        Return code indicating that the JAVA_HOME variable is not set within the shell script, 8.
      • RC_NOJAVA

        public static final ReturnCode RC_NOJAVA
        Return code indicating that the "java" command is not executable within the shell script, 9.
      • RC_UNKNOWN

        public static final ReturnCode RC_UNKNOWN
        Return code indicating an unknown error occurred, -1.
    • Field Detail

      • code

        private final int code
        Return code value.
    • Constructor Detail

      • ReturnCode

        private ReturnCode​(int c)
        Constructor.
        Parameters:
        c - return code value
    • Method Detail

      • values

        public static ReturnCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ReturnCode c : ReturnCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReturnCode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getCode

        public int getCode()
        Gets the return code value.
        Returns:
        the return code value