Package thewebsemantic
Class UriMethodTypeWrapper
- java.lang.Object
-
- thewebsemantic.TypeWrapper
-
- thewebsemantic.UriMethodTypeWrapper
-
public class UriMethodTypeWrapper extends TypeWrapper
-
-
Field Summary
-
Fields inherited from class thewebsemantic.TypeWrapper
c, constructor, descriptors, info, JENABEAN_PREFIX
-
-
Constructor Summary
Constructors Constructor Description UriMethodTypeWrapper(Class<?> c, Method m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid(Object bean)Reterns the IDObjecttoBean(String uri)This implementation of toBean() supplies the URI to a constructor, if it exists.ObjecttoProxyBean(org.apache.jena.rdf.model.Resource source, AnnotationHelper jpa)Stringuri(Object bean)Stringuri(String id)-
Methods inherited from class thewebsemantic.TypeWrapper
beanInfo, collections, descriptors, getId, getProperty, getRDFAnnotation, getValueContexts, instanceURI, invokeMethod, namespace, toBean, type, typeUri, typeUri, uri, valueContexts, wrap
-
-
-
-
Method Detail
-
uri
public String uri(Object bean)
- Overrides:
uriin classTypeWrapper
-
uri
public String uri(String id)
- Specified by:
uriin classTypeWrapper
-
id
public String id(Object bean)
Description copied from class:TypeWrapperReterns the ID- Specified by:
idin classTypeWrapper- Returns:
-
toBean
public Object toBean(String uri)
This implementation of toBean() supplies the URI to a constructor, if it exists. This enables the loading of pre-existing RDF what wasn't created with Jenabean managed URI's.- Overrides:
toBeanin classTypeWrapper
-
toProxyBean
public Object toProxyBean(org.apache.jena.rdf.model.Resource source, AnnotationHelper jpa)
- Specified by:
toProxyBeanin classTypeWrapper
-
-