Package thewebsemantic
Class TypeWrapper
- java.lang.Object
-
- thewebsemantic.TypeWrapper
-
- Direct Known Subclasses:
DefaultTypeWrapper,EnumTypeWrapper,IdFieldTypeWrapper,IdMethodTypeWrapper,UriMethodTypeWrapper
public abstract class TypeWrapper extends Object
Retrieves annotation information as well as other type related operations on Classes. Keeps cached versions to minimize introspection work.
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>cprotected Constructor<?>constructorprotected PropertyDescriptor[]descriptorsprotected BeanInfoinfostatic StringJENABEAN_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeWrapper(Class<T> c)
-
Method Summary
-
-
-
Field Detail
-
JENABEAN_PREFIX
public static final String JENABEAN_PREFIX
- See Also:
- Constant Field Values
-
c
protected Class<?> c
-
info
protected BeanInfo info
-
constructor
protected Constructor<?> constructor
-
descriptors
protected PropertyDescriptor[] descriptors
-
-
Constructor Detail
-
TypeWrapper
protected TypeWrapper(Class<T> c)
-
-
Method Detail
-
type
public static TypeWrapper type(Object o)
-
valueContexts
public static ValuesContext[] valueContexts(Object o)
-
getValueContexts
public ValuesContext[] getValueContexts(Object o)
-
getProperty
public ValuesContext getProperty(String name)
-
wrap
public static TypeWrapper wrap(Class<?> c)
-
typeUri
public String typeUri()
-
descriptors
protected PropertyDescriptor[] descriptors()
-
collections
public String[] collections()
-
namespace
public String namespace()
-
uri
public String uri(AccessibleObject m, String name)
-
getRDFAnnotation
protected static RdfProperty getRDFAnnotation(AccessibleObject m)
-
toBean
public final Object toBean(org.apache.jena.rdf.model.Resource source)
- Parameters:
source-- Returns:
- Throws:
Exception
-
toProxyBean
public abstract Object toProxyBean(org.apache.jena.rdf.model.Resource source, AnnotationHelper jpa)
-
-