public class SubjectInfoImpl extends Object implements SubjectInfo
| Constructor and Description |
|---|
SubjectInfoImpl(Class<?> implementedClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PredicateInfoImpl pi)
Add a predicate info to this subject.
|
Class<?> |
getImplementedClass()
Get the class that was annotated with the Subject annotation.
|
PredicateInfo |
getPredicateInfo(Method m)
Get the predicateInfo or return null if not found
|
PredicateInfo |
getPredicateInfo(String function,
Class<?> clazz)
Get the predicate info for a method.
|
com.hp.hpl.jena.rdf.model.Property |
getPredicateProperty(Method m)
Get the RDF Property for the method
|
com.hp.hpl.jena.rdf.model.Property |
getPredicateProperty(String methodName)
Get the RDF property for a method name.
|
String |
getPredicateUriStr(Method m)
The the URI string of the predicate property.
|
String |
getPredicateUriStr(String function)
The the URI string of the predicate property.
|
Subject |
getSubject()
Get the subject annotation for this class.
|
void |
removePredicateInfo(Method m)
Remove a predicate info from this subject.
|
void |
removePredicateInfo(String function,
Class<?> clazz)
Remove a predicate info from this subject.
|
void |
validate(Collection<Class<?>> iface)
Validate that this subject info implements all the methods for all the
interfaces listed in iface.
|
public SubjectInfoImpl(Class<?> implementedClass)
public void add(PredicateInfoImpl pi)
pi - The predicateInfo to add.public Class<?> getImplementedClass()
SubjectInfogetImplementedClass in interface SubjectInfopublic PredicateInfo getPredicateInfo(Method m)
SubjectInfogetPredicateInfo in interface SubjectInfom - The method to get information for.public PredicateInfo getPredicateInfo(String function, Class<?> clazz)
SubjectInfogetPredicateInfo in interface SubjectInfofunction - The method nameclazz - The return type (for a getter type method) or parameter type
(for a setter type method)public com.hp.hpl.jena.rdf.model.Property getPredicateProperty(Method m)
getPredicateProperty in interface SubjectInfom - The method to get the property for.public com.hp.hpl.jena.rdf.model.Property getPredicateProperty(String methodName)
getPredicateProperty in interface SubjectInfomethodName - The method name to locatepublic String getPredicateUriStr(Method m)
SubjectInfogetPredicateUriStr in interface SubjectInfom - The method to get the predicate for.public String getPredicateUriStr(String function)
SubjectInfogetPredicateUriStr in interface SubjectInfofunction - The name of the method to get the predicate for.public Subject getSubject()
getSubject in interface SubjectInfopublic void removePredicateInfo(Method m)
m - the method to removepublic void removePredicateInfo(String function, Class<?> clazz)
function - The function to removeclazz - The class that is expected for the parameter (setter) or for
return (getter).public void validate(Collection<Class<?>> iface)
SubjectInfovalidate in interface SubjectInfoiface - The list of interfaces that this subjectInfo should implement.Copyright © 2012-2013 XENEI.com. All Rights Reserved.