FileDocCategorySizeDatePackage
FieldTarget.javaAPI DocApache Axis 1.42069Sat Apr 22 18:57:26 BST 2006org.apache.axis.encoding

FieldTarget

public class FieldTarget extends Object implements Target

Fields Summary
protected static Log
log
private Object
targetObject
private Field
targetField
Constructors Summary
public FieldTarget(Object targetObject, Field targetField)

    
        
    
        this.targetObject = targetObject;
        this.targetField = targetField;
    
public FieldTarget(Object targetObject, String fieldName)

        Class cls = targetObject.getClass();
        targetField = cls.getField(fieldName);
        this.targetObject = targetObject;
    
Methods Summary
public voidset(java.lang.Object value)

        try {
            targetField.set(targetObject, value);
        } catch (IllegalAccessException accEx) {
            log.error(Messages.getMessage("illegalAccessException00"),
                      accEx);
            throw new SAXException(accEx);
        } catch (IllegalArgumentException argEx) {
            log.error(Messages.getMessage("illegalArgumentException00"),
                      argEx);
            throw new SAXException(argEx);
        }