com.alibaba.dubbo.common.beanutil
Class JavaBeanDescriptor

java.lang.Object
  extended by com.alibaba.dubbo.common.beanutil.JavaBeanDescriptor
All Implemented Interfaces:
Serializable, Iterable<Map.Entry<Object,Object>>

public final class JavaBeanDescriptor
extends Object
implements Serializable, Iterable<Map.Entry<Object,Object>>

Author:
kimi
See Also:
Serialized Form

Field Summary
static int TYPE_ARRAY
           
static int TYPE_BEAN
           
static int TYPE_CLASS
           
static int TYPE_COLLECTION
           
static int TYPE_ENUM
           
static int TYPE_MAP
           
static int TYPE_PRIMITIVE
           
 
Constructor Summary
JavaBeanDescriptor()
           
JavaBeanDescriptor(String className, int type)
           
 
Method Summary
 boolean containsProperty(Object propertyName)
           
 String getClassName()
           
 String getClassNameProperty()
           
 String getEnumPropertyName()
           
 Object getPrimitiveProperty()
           
 Object getProperty(Object propertyName)
           
 int getType()
           
 boolean isArrayType()
           
 boolean isBeanType()
           
 boolean isClassType()
           
 boolean isCollectionType()
           
 boolean isEnumType()
           
 boolean isMapType()
           
 boolean isPrimitiveType()
           
 Iterator<Map.Entry<Object,Object>> iterator()
           
 int propertySize()
           
 void setClassName(String className)
           
 String setClassNameProperty(String name)
           
 String setEnumNameProperty(String name)
           
 Object setPrimitiveProperty(Object primitiveValue)
           
 Object setProperty(Object propertyName, Object propertyValue)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_CLASS

public static final int TYPE_CLASS
See Also:
Constant Field Values

TYPE_ENUM

public static final int TYPE_ENUM
See Also:
Constant Field Values

TYPE_COLLECTION

public static final int TYPE_COLLECTION
See Also:
Constant Field Values

TYPE_MAP

public static final int TYPE_MAP
See Also:
Constant Field Values

TYPE_ARRAY

public static final int TYPE_ARRAY
See Also:
Constant Field Values

TYPE_PRIMITIVE

public static final int TYPE_PRIMITIVE
See Also:
ReflectUtils.isPrimitive(Class), Constant Field Values

TYPE_BEAN

public static final int TYPE_BEAN
See Also:
Constant Field Values
Constructor Detail

JavaBeanDescriptor

public JavaBeanDescriptor()

JavaBeanDescriptor

public JavaBeanDescriptor(String className,
                          int type)
Method Detail

isClassType

public boolean isClassType()

isEnumType

public boolean isEnumType()

isCollectionType

public boolean isCollectionType()

isMapType

public boolean isMapType()

isArrayType

public boolean isArrayType()

isPrimitiveType

public boolean isPrimitiveType()

isBeanType

public boolean isBeanType()

getType

public int getType()

setType

public void setType(int type)

getClassName

public String getClassName()

setClassName

public void setClassName(String className)

setProperty

public Object setProperty(Object propertyName,
                          Object propertyValue)

setEnumNameProperty

public String setEnumNameProperty(String name)

getEnumPropertyName

public String getEnumPropertyName()

setClassNameProperty

public String setClassNameProperty(String name)

getClassNameProperty

public String getClassNameProperty()

setPrimitiveProperty

public Object setPrimitiveProperty(Object primitiveValue)

getPrimitiveProperty

public Object getPrimitiveProperty()

getProperty

public Object getProperty(Object propertyName)

containsProperty

public boolean containsProperty(Object propertyName)

iterator

public Iterator<Map.Entry<Object,Object>> iterator()
Specified by:
iterator in interface Iterable<Map.Entry<Object,Object>>

propertySize

public int propertySize()


Copyright © 2012–2017 Alibaba. All rights reserved.