com.alibaba.dubbo.common.beanutil
Enum JavaBeanAccessor

java.lang.Object
  extended by java.lang.Enum<JavaBeanAccessor>
      extended by com.alibaba.dubbo.common.beanutil.JavaBeanAccessor
All Implemented Interfaces:
Serializable, Comparable<JavaBeanAccessor>

public enum JavaBeanAccessor
extends Enum<JavaBeanAccessor>

Author:
kimi

Enum Constant Summary
ALL
          Method prefer to field.
FIELD
          Field accessor.
METHOD
          Method accessor.
 
Method Summary
static boolean isAccessByField(JavaBeanAccessor accessor)
           
static boolean isAccessByMethod(JavaBeanAccessor accessor)
           
static JavaBeanAccessor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavaBeanAccessor[] 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

FIELD

public static final JavaBeanAccessor FIELD
Field accessor.


METHOD

public static final JavaBeanAccessor METHOD
Method accessor.


ALL

public static final JavaBeanAccessor ALL
Method prefer to field.

Method Detail

values

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

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

valueOf

public static JavaBeanAccessor 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

isAccessByMethod

public static boolean isAccessByMethod(JavaBeanAccessor accessor)

isAccessByField

public static boolean isAccessByField(JavaBeanAccessor accessor)


Copyright © 2012–2017 Alibaba. All rights reserved.