Package com.db4o.reflect.generic
Class GenericField
- java.lang.Object
-
- com.db4o.reflect.generic.GenericField
-
- All Implemented Interfaces:
DeepClone
,ReflectField
- Direct Known Subclasses:
GenericVirtualField
public class GenericField extends java.lang.Object implements ReflectField, DeepClone
-
-
Constructor Summary
Constructors Constructor Description GenericField(java.lang.String name, ReflectClass clazz, boolean primitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
deepClone(java.lang.Object obj)
The parameter allows passing one new object so parent references can be corrected on children.java.lang.Object
get(java.lang.Object onObject)
ReflectClass
getFieldType()
The ReflectClass returned by this method should have been provided by the parent reflector.java.lang.String
getName()
java.lang.Object
indexEntry(java.lang.Object orig)
ReflectClass
indexType()
The ReflectClass returned by this method should have been provided by the parent reflector.boolean
isPrimitive()
boolean
isPublic()
boolean
isStatic()
boolean
isTransient()
void
set(java.lang.Object onObject, java.lang.Object value)
-
-
-
Constructor Detail
-
GenericField
public GenericField(java.lang.String name, ReflectClass clazz, boolean primitive)
-
-
Method Detail
-
deepClone
public java.lang.Object deepClone(java.lang.Object obj)
Description copied from interface:DeepClone
The parameter allows passing one new object so parent references can be corrected on children.
-
get
public java.lang.Object get(java.lang.Object onObject)
- Specified by:
get
in interfaceReflectField
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceReflectField
-
getFieldType
public ReflectClass getFieldType()
Description copied from interface:ReflectField
The ReflectClass returned by this method should have been provided by the parent reflector.- Specified by:
getFieldType
in interfaceReflectField
- Returns:
- the ReflectClass representing the field type as provided by the parent reflector
-
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interfaceReflectField
-
isPrimitive
public boolean isPrimitive()
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceReflectField
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceReflectField
-
set
public void set(java.lang.Object onObject, java.lang.Object value)
- Specified by:
set
in interfaceReflectField
-
indexEntry
public java.lang.Object indexEntry(java.lang.Object orig)
- Specified by:
indexEntry
in interfaceReflectField
-
indexType
public ReflectClass indexType()
Description copied from interface:ReflectField
The ReflectClass returned by this method should have been provided by the parent reflector.- Specified by:
indexType
in interfaceReflectField
- Returns:
- the ReflectClass representing the index type as provided by the parent reflector
-
-