uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

valueOf(String name) method

Description

This method acquires the enumerated constant of the specified name.

Accurately specify an identifier for the constant declared with the enumerated type. Note that extra white spaces are not allowed.

Syntax

public static ClientResponse.Status valueOf(String name)

Parameter

name
This is the name of the enumerated constant to be acquired.

Return value

The method returns the enumerated constant of the specified name.

Exception

IllegalArgumentException
This exception is thrown if the enumerated constant of the specified name does not exist.

NullPointerException
This exception is thrown if null is specified in the name parameter.

Notes

None.