org.dynalang.mop
Enum BaseMetaobjectProtocol.Results

java.lang.Object
  extended by java.lang.Enum<BaseMetaobjectProtocol.Results>
      extended by org.dynalang.mop.BaseMetaobjectProtocol.Results
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BaseMetaobjectProtocol.Results>
Enclosing interface:
BaseMetaobjectProtocol

public static enum BaseMetaobjectProtocol.Results
extends java.lang.Enum<BaseMetaobjectProtocol.Results>

Defines special operation results that are used as return values from many metaobject protocol methods to indicate success or failure.

Version:
$Id: $
Author:
Attila Szegedi

Enum Constant Summary
doesNotExist
          The requested property does not exist.
noAuthority
          The metaobject protocol can't authoritatively perform the requested operation on the object (the object is foreign to it).
noRepresentation
          A suitable type representation for a value could not be obtained.
notCallable
          The target object that was attempted to be called does not support calling (is not a callable) in the context of the attempted call operation (either with positional or named arguments).
notDeleteable
          The property attempted to be deleted can not be deleted.
notReadable
          The property attempted to be read exists, but is not readable.
notWritable
          The property attempted to be written exists, but is not writable.
ok
          The operation succeeded.
 
Method Summary
static BaseMetaobjectProtocol.Results valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BaseMetaobjectProtocol.Results[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

doesNotExist

public static final BaseMetaobjectProtocol.Results doesNotExist
The requested property does not exist.


noAuthority

public static final BaseMetaobjectProtocol.Results noAuthority
The metaobject protocol can't authoritatively perform the requested operation on the object (the object is foreign to it).


notCallable

public static final BaseMetaobjectProtocol.Results notCallable
The target object that was attempted to be called does not support calling (is not a callable) in the context of the attempted call operation (either with positional or named arguments).


notDeleteable

public static final BaseMetaobjectProtocol.Results notDeleteable
The property attempted to be deleted can not be deleted.


notReadable

public static final BaseMetaobjectProtocol.Results notReadable
The property attempted to be read exists, but is not readable.


noRepresentation

public static final BaseMetaobjectProtocol.Results noRepresentation
A suitable type representation for a value could not be obtained.


notWritable

public static final BaseMetaobjectProtocol.Results notWritable
The property attempted to be written exists, but is not writable.


ok

public static final BaseMetaobjectProtocol.Results ok
The operation succeeded.

Method Detail

values

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

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

valueOf

public static BaseMetaobjectProtocol.Results 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