org.xenei.jena.entities
Interface SubjectInfo

All Known Implementing Classes:
SubjectInfoImpl

public interface SubjectInfo

Information about a subject annotated object.


Method Summary
 Class<?> getImplementedClass()
          Get the class that was annotated with the Subject annotation.
 PredicateInfo getPredicateInfo(Method method)
          Get the predicateInfo or return null if not found
 PredicateInfo getPredicateInfo(String methodName, Class<?> clazz)
          Get the predicate info for a method.
 com.hp.hpl.jena.rdf.model.Property getPredicateProperty(Method method)
          Get the Property that is the predicate for the method.
 com.hp.hpl.jena.rdf.model.Property getPredicateProperty(String methodName)
          Get the Property that is the predicate for the method.
 String getPredicateUriStr(Method method)
          The the URI string of the predicate property.
 String getPredicateUriStr(String methodName)
          The the URI string of the predicate property.
 

Method Detail

getImplementedClass

Class<?> getImplementedClass()
Get the class that was annotated with the Subject annotation. e.g. the class that this SubjectInfo is about.

Returns:
The class that contains the annotation.

getPredicateInfo

PredicateInfo getPredicateInfo(String methodName,
                               Class<?> clazz)
Get the predicate info for a method.

Parameters:
methodName - The method name
clazz - The return type (for a getter type method) or parameter type (for a setter type method)
Returns:
the PredicateInfo for the method.

getPredicateInfo

PredicateInfo getPredicateInfo(Method method)
Get the predicateInfo or return null if not found

Parameters:
method - The method to get information for.
Returns:
PredicateInfo or null.

getPredicateUriStr

String getPredicateUriStr(String methodName)
The the URI string of the predicate property.

Parameters:
methodName - The name of the method to get the predicate for.
Returns:
the URI string for the predicate property.

getPredicateUriStr

String getPredicateUriStr(Method method)
The the URI string of the predicate property.

Parameters:
method - The method to get the predicate for.
Returns:
the URI string for the predicate property.

getPredicateProperty

com.hp.hpl.jena.rdf.model.Property getPredicateProperty(String methodName)
Get the Property that is the predicate for the method.

Parameters:
methodName - The method name to lookup.
Returns:
A property or null if function was not found

getPredicateProperty

com.hp.hpl.jena.rdf.model.Property getPredicateProperty(Method method)
Get the Property that is the predicate for the method.

Parameters:
method - The method to lookup.
Returns:
A property or null if method was not found


Copyright © 2012 XENEI.com. All Rights Reserved.