|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xenei.jena.entities.impl.PredicateInfoImpl
public class PredicateInfoImpl
The parsed information about a predicate method. Use of this class registers three (3) new RDFDatatypes: CharacterDatatype that parses Character objects CharDatatype that parses char.class objects LongDatatype that parses Longs and always returns a long.
| Constructor Summary | |
|---|---|
PredicateInfoImpl(EntityManager entityManager,
org.xenei.jena.entities.impl.EffectivePredicate predicate,
String methodName,
Class<?> valueClass)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
static ObjectHandler |
getHandler(EntityManager entityManager,
Class<?> returnType,
org.xenei.jena.entities.impl.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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PredicateInfoImpl(EntityManager entityManager,
org.xenei.jena.entities.impl.EffectivePredicate predicate,
String methodName,
Class<?> valueClass)
throws MissingAnnotation
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.| Method Detail |
|---|
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 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 String getMethodName()
PredicateInfo
getMethodName in interface PredicateInfopublic ActionType getActionType()
getActionType in interface PredicateInfopublic String getNamespace()
PredicateInfo
getNamespace in interface PredicateInfopublic Class<?> getValueClass()
PredicateInfo
getValueClass in interface PredicateInfopublic String toString()
toString in class Objectpublic String getUriString()
PredicateInfo
getUriString in interface PredicateInfopublic com.hp.hpl.jena.rdf.model.Property getProperty()
PredicateInfo
getProperty in interface PredicateInfopublic ObjectHandler getObjectHandler()
public static ObjectHandler getHandler(EntityManager entityManager,
Class<?> returnType,
org.xenei.jena.entities.impl.EffectivePredicate pred)
entityManager - The entity manager this to use.returnType - The ObjectHandler of the proper typepred - The EffectivePredicate definition.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||