org.jboss.xb.binding.introspection
Class FieldInfo

java.lang.Object
  extended by org.jboss.xb.binding.introspection.FieldInfo

public class FieldInfo
extends Object

Version:
$Revision: $
Author:
Alexey Loubyansky

Nested Class Summary
static class FieldInfo.GetValueAccessFactory
           
static class FieldInfo.SetValueAccessFactory
           
 
Constructor Summary
FieldInfo(Class<?> owner, Field field)
           
FieldInfo(Class<?> owner, String name, Method getter)
           
FieldInfo(Class<?> owner, String name, Method getter, Method setter)
           
 
Method Summary
static FieldInfo getFieldInfo(Class<?> cls, String fieldName, boolean required)
           
 String getName()
           
 Class<?> getOwner()
           
 Class<?> getType()
           
 Object getValue(Object owner)
           
 boolean isReadable()
           
 boolean isWritable()
           
 void setValue(Object owner, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldInfo

public FieldInfo(Class<?> owner,
                 String name,
                 Method getter)

FieldInfo

public FieldInfo(Class<?> owner,
                 String name,
                 Method getter,
                 Method setter)

FieldInfo

public FieldInfo(Class<?> owner,
                 Field field)
Method Detail

getFieldInfo

public static FieldInfo getFieldInfo(Class<?> cls,
                                     String fieldName,
                                     boolean required)

getOwner

public Class<?> getOwner()

getName

public String getName()

getType

public Class<?> getType()

isReadable

public boolean isReadable()

isWritable

public boolean isWritable()

getValue

public Object getValue(Object owner)

setValue

public void setValue(Object owner,
                     Object value)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.