public class PredicateInfoImpl extends Object implements PredicateInfo
| Constructor and Description |
|---|
PredicateInfoImpl(EntityManager entityManager,
EffectivePredicate predicate,
String methodName,
Class<?> valueClass)
Constructor.
|
PredicateInfoImpl(PredicateInfoImpl pi) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
dataTypeDump(String format,
String nullClassString)
Create a sorted list of registered data types.
|
Object |
exec(Method method,
com.hp.hpl.jena.rdf.model.Resource resource,
Object[] args)
Execute the method against the resource with the arguments.
|
ActionType |
getActionType()
Get the action type for the functin.
|
EffectivePredicate |
getEffectivePredicate() |
static ObjectHandler |
getHandler(EntityManager entityManager,
Class<?> returnType,
EffectivePredicate pred)
Get the ObjectHandler for a predicate.
|
String |
getMethodName()
Get the method name that this predicate info is describing.
|
String |
getNamespace()
Get the namespace URI for the predicate.
|
ObjectHandler |
getObjectHandler() |
List<Method> |
getPostExec()
List of methods to execute after the exec
|
com.hp.hpl.jena.rdf.model.Property |
getProperty()
Get the predicate as a property.
|
String |
getUriString()
Get the predicate URI as a string.
|
Class<?> |
getValueClass()
get the value class.
|
String |
toString() |
public PredicateInfoImpl(EntityManager entityManager, EffectivePredicate predicate, String methodName, Class<?> valueClass)
entityManager - The EntityManager that this predicate is assocatied with.predicate - The EffectivePredicate instance that describes the predicate.methodName - The name of the method that this predicate calls.valueClass - The class type for the return (getter) or parameter (setter)MissingAnnotation - If an annotation was required but not provided.public PredicateInfoImpl(PredicateInfoImpl pi)
public static List<String> dataTypeDump(String format, String nullClassString)
format - The output format or "%s | %s" if not specified.nullClassString - the string to print for null java class.public static ObjectHandler getHandler(EntityManager entityManager, Class<?> returnType, EffectivePredicate pred)
entityManager - The entity manager this to use.returnType - The ObjectHandler of the proper typepred - The EffectivePredicate definition.public Object exec(Method method, com.hp.hpl.jena.rdf.model.Resource resource, Object[] args)
method - The method to executeresource - The resource to execute it againstargs - The arguments to the method.NullPointerException - if the return type of the method is a primitive and the
predicate does not exist on the resource.public ActionType getActionType()
getActionType in interface PredicateInfopublic EffectivePredicate getEffectivePredicate()
public String getMethodName()
PredicateInfogetMethodName in interface PredicateInfopublic String getNamespace()
PredicateInfogetNamespace in interface PredicateInfopublic ObjectHandler getObjectHandler()
public com.hp.hpl.jena.rdf.model.Property getProperty()
PredicateInfogetProperty in interface PredicateInfopublic String getUriString()
PredicateInfogetUriString in interface PredicateInfopublic Class<?> getValueClass()
PredicateInfogetValueClass in interface PredicateInfopublic List<Method> getPostExec()
PredicateInfogetPostExec in interface PredicateInfoCopyright © 2012-2013 XENEI.com. All Rights Reserved.