edu.internet2.middleware.grouper.ws.coresoap
Enum WsHasMemberResult.WsHasMemberResultCode

java.lang.Object
  extended by java.lang.Enum<WsHasMemberResult.WsHasMemberResultCode>
      extended by edu.internet2.middleware.grouper.ws.coresoap.WsHasMemberResult.WsHasMemberResultCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WsHasMemberResult.WsHasMemberResultCode>
Enclosing class:
WsHasMemberResult

public static enum WsHasMemberResult.WsHasMemberResultCode
extends java.lang.Enum<WsHasMemberResult.WsHasMemberResultCode>

result code of a request


Enum Constant Summary
EXCEPTION
          problem with query
INVALID_QUERY
          invalid query (e.g.
IS_MEMBER
          the subject is a member (success = T)
IS_NOT_MEMBER
          the subject was found and is not a member (success = T)
SUBJECT_DUPLICATE
          found multiple results
SUBJECT_NOT_FOUND
          cant find the subject
 
Method Summary
abstract  WsHasMemberLiteResult.WsHasMemberLiteResultCode convertToLiteCode()
          if there is one result, convert to the results code
 boolean isSuccess()
          if this is a successful result
static WsHasMemberResult.WsHasMemberResultCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WsHasMemberResult.WsHasMemberResultCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUBJECT_DUPLICATE

public static final WsHasMemberResult.WsHasMemberResultCode SUBJECT_DUPLICATE
found multiple results


SUBJECT_NOT_FOUND

public static final WsHasMemberResult.WsHasMemberResultCode SUBJECT_NOT_FOUND
cant find the subject


IS_MEMBER

public static final WsHasMemberResult.WsHasMemberResultCode IS_MEMBER
the subject is a member (success = T)


IS_NOT_MEMBER

public static final WsHasMemberResult.WsHasMemberResultCode IS_NOT_MEMBER
the subject was found and is not a member (success = T)


EXCEPTION

public static final WsHasMemberResult.WsHasMemberResultCode EXCEPTION
problem with query


INVALID_QUERY

public static final WsHasMemberResult.WsHasMemberResultCode INVALID_QUERY
invalid query (e.g. if everything blank)

Method Detail

values

public static WsHasMemberResult.WsHasMemberResultCode[] 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 (WsHasMemberResult.WsHasMemberResultCode c : WsHasMemberResult.WsHasMemberResultCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WsHasMemberResult.WsHasMemberResultCode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isSuccess

public boolean isSuccess()
if this is a successful result

Returns:
true if success

convertToLiteCode

public abstract WsHasMemberLiteResult.WsHasMemberLiteResultCode convertToLiteCode()
if there is one result, convert to the results code

Returns:
result code