org.dynalang.mop
Enum BaseMetaobjectProtocol.Result

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

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

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.Result valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BaseMetaobjectProtocol.Result[] 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.Result doesNotExist
The requested property does not exist.


noAuthority

public static final BaseMetaobjectProtocol.Result 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.Result 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.Result notDeleteable
The property attempted to be deleted can not be deleted.


notReadable

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


noRepresentation

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


notWritable

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


ok

public static final BaseMetaobjectProtocol.Result ok
The operation succeeded.

Method Detail

values

public static final BaseMetaobjectProtocol.Result[] 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.Result c : BaseMetaobjectProtocol.Result.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.Result 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