org.chromattic.core.mapper
Class PropertyMapper<P extends PropertyInfo<V>,V extends ValueInfo,O extends ObjectContext<O>>

java.lang.Object
  extended by org.chromattic.core.mapper.PropertyMapper<P,V,O>
Direct Known Subclasses:
JCRNodeAttributePropertyMapper, JCRPropertyListPropertyMapper, JCRPropertyMapPropertyMapper, JCRPropertyPropertyMapper, RelatedPropertyMapper

public abstract class PropertyMapper<P extends PropertyInfo<V>,V extends ValueInfo,O extends ObjectContext<O>>
extends java.lang.Object

Version:
$Revision$
Author:
Julien Viet

Field Summary
protected  java.lang.Class<O> contextType
          .
protected  PropertyMapping<P,V> info
          .
 
Constructor Summary
PropertyMapper(java.lang.Class<O> contextType, PropertyMapping<P,V> info)
           
 
Method Summary
 java.lang.Object get(O context)
           
 MethodInvoker<O> getGetter()
           
 PropertyMapping<P,V> getInfo()
           
 MethodInvoker<O> getSetter()
           
 java.lang.Class<O> getType()
           
 void set(O context, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextType

protected final java.lang.Class<O extends ObjectContext<O>> contextType
.


info

protected final PropertyMapping<P extends PropertyInfo<V>,V extends ValueInfo> info
.

Constructor Detail

PropertyMapper

public PropertyMapper(java.lang.Class<O> contextType,
                      PropertyMapping<P,V> info)
Method Detail

getType

public java.lang.Class<O> getType()

getInfo

public PropertyMapping<P,V> getInfo()

get

public java.lang.Object get(O context)
                     throws java.lang.Throwable
Throws:
java.lang.Throwable

set

public void set(O context,
                java.lang.Object value)
         throws java.lang.Throwable
Throws:
java.lang.Throwable

getGetter

public MethodInvoker<O> getGetter()

getSetter

public MethodInvoker<O> getSetter()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.