soaprmi.struct
Class BeanAccessor

java.lang.Object
  extended bysoaprmi.struct.BeanAccessor
All Implemented Interfaces:
StructAccessor

public class BeanAccessor
extends java.lang.Object
implements StructAccessor

Make bean properties available through for struct acccessors.

Version:
$Revision: 1.5 $
Author:
Aleksander Slominski

Constructor Summary
BeanAccessor()
           
BeanAccessor(java.lang.Class klass)
           
 
Method Summary
 java.lang.String[] getAccessorNames()
           
 java.lang.Class getAccessorType(java.lang.String accessorName)
           
 java.lang.Object getValue(java.lang.Object target, java.lang.String accessorName)
           
 StructAccessor makeStructAccessor(java.lang.Class accessorType)
           
 void mapAccessorToName(java.lang.String accessorName, java.lang.String name)
           
 java.lang.Object newInstance()
           
 boolean primitivesWrapped()
           
 void setValue(java.lang.Object target, java.lang.String accessorName, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanAccessor

public BeanAccessor()

BeanAccessor

public BeanAccessor(java.lang.Class klass)
             throws StructException
Method Detail

newInstance

public java.lang.Object newInstance()
                             throws StructException
Specified by:
newInstance in interface StructAccessor
Throws:
StructException

primitivesWrapped

public boolean primitivesWrapped()
Specified by:
primitivesWrapped in interface StructAccessor

makeStructAccessor

public StructAccessor makeStructAccessor(java.lang.Class accessorType)
                                  throws StructException
Specified by:
makeStructAccessor in interface StructAccessor
Throws:
StructException

setValue

public void setValue(java.lang.Object target,
                     java.lang.String accessorName,
                     java.lang.Object value)
              throws StructException
Specified by:
setValue in interface StructAccessor
Throws:
StructException

getValue

public java.lang.Object getValue(java.lang.Object target,
                                 java.lang.String accessorName)
                          throws StructException
Specified by:
getValue in interface StructAccessor
Throws:
StructException

getAccessorType

public java.lang.Class getAccessorType(java.lang.String accessorName)
                                throws StructException
Specified by:
getAccessorType in interface StructAccessor
Throws:
StructException

getAccessorNames

public java.lang.String[] getAccessorNames()
Specified by:
getAccessorNames in interface StructAccessor

mapAccessorToName

public void mapAccessorToName(java.lang.String accessorName,
                              java.lang.String name)
                       throws StructException
Specified by:
mapAccessorToName in interface StructAccessor
Throws:
StructException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.