com.googlecode.objectify.impl
Interface Wrapper

All Known Implementing Classes:
FieldWrapper, MethodWrapper

public interface Wrapper

Basic interface so we can wrap fields and methods so they look more or less the same. This makes @AlsoLoad methods look just like fields.


Method Summary
 java.lang.Object get(java.lang.Object pojo)
          Get the value of the thing thing (field) if possible, or null if not possible (method)
 java.lang.reflect.Type getGenericType()
          Get the "generictype", which can be a ParameterizedType
 java.lang.Class<?> getType()
          Get the type of the thing.
 boolean isSerialized()
           
 void set(java.lang.Object pojo, java.lang.Object value)
          Actually set the thing (field or method) on an object
 

Method Detail

set

void set(java.lang.Object pojo,
         java.lang.Object value)
Actually set the thing (field or method) on an object


get

java.lang.Object get(java.lang.Object pojo)
Get the value of the thing thing (field) if possible, or null if not possible (method)


getType

java.lang.Class<?> getType()
Get the type of the thing. Might return null when unknown (ie content of Collection with no generic type)


getGenericType

java.lang.reflect.Type getGenericType()
Get the "generictype", which can be a ParameterizedType


isSerialized

boolean isSerialized()
Returns:
true if the value should be deserialized from blob


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1