|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.elmo.rolemapper.RoleMapperImpl<URI>
public class RoleMapperImpl<URI>
| Constructor Summary | |
|---|---|
RoleMapperImpl()
|
|
| Method Summary | |
|---|---|
void |
addBehaviour(Class<?> role)
|
void |
addBehaviour(Class<?> role,
String type)
|
void |
addConcept(Class<?> role)
|
void |
addConcept(Class<?> role,
String type)
|
void |
addFactory(Class<?> javaClass)
|
void |
addFactory(Class<?> javaClass,
String type)
|
Collection<Class<?>> |
findAdditionalRoles(Collection<Class<?>> classes)
|
Collection<Class<?>> |
findIndividualRoles(URI instance,
Collection<Class<?>> classes)
Adds roles to the collection that are specific to this instance. |
Collection<Class<?>> |
findRoles(Collection<URI> types,
Collection<Class<?>> roles)
Finds all the roles that should be implemented by these types. |
Collection<Class<?>> |
findRoles(URI type)
Finds the Java Class for this rdf:Class. |
Collection<URI> |
findSubTypes(Class<?> role,
Collection<URI> rdfTypes)
Finds the rdf:types for concept and any sub-concept(s). |
URI |
findType(Class<?> concept)
Finds the rdf:Class for this Java Class. |
Collection<Class<?>> |
getConceptClasses()
|
Collection<Class<?>> |
getConceptOnlyClasses()
|
boolean |
isIndividualRolesPresent(URI instance)
Determines if a registered role hase this value as a {link org.openrdf.annotations.oneOf} value. |
boolean |
isTypeRecorded(URI type)
Finds if there exists a Java Class for this rdf:Class. |
void |
setComplexMapper(ComplexMapper<URI> additional)
|
void |
setHierarchicalRoleMapper(HierarchicalRoleMapper<URI> roleMapper)
|
void |
setRdfTypeFactory(RdfTypeFactory<URI> vf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoleMapperImpl()
| Method Detail |
|---|
public void setHierarchicalRoleMapper(HierarchicalRoleMapper<URI> roleMapper)
public void setComplexMapper(ComplexMapper<URI> additional)
public void setRdfTypeFactory(RdfTypeFactory<URI> vf)
setRdfTypeFactory in interface RoleMapper<URI>public Collection<Class<?>> getConceptClasses()
getConceptClasses in interface RoleMapper<URI>public Collection<Class<?>> getConceptOnlyClasses()
getConceptOnlyClasses in interface RoleMapper<URI>
public Collection<Class<?>> findIndividualRoles(URI instance,
Collection<Class<?>> classes)
RoleMapper
findIndividualRoles in interface RoleMapper<URI>classespublic Collection<Class<?>> findRoles(URI type)
RoleMapper
findRoles in interface RoleMapper<URI>
public Collection<Class<?>> findRoles(Collection<URI> types,
Collection<Class<?>> roles)
RoleMapper
findRoles in interface RoleMapper<URI>types - rdf:typesroles - collection should be used to add the classes.
rolespublic Collection<Class<?>> findAdditionalRoles(Collection<Class<?>> classes)
public Collection<URI> findSubTypes(Class<?> role,
Collection<URI> rdfTypes)
RoleMapper
findSubTypes in interface RoleMapper<URI>rdfTypespublic URI findType(Class<?> concept)
RoleMapper
findType in interface RoleMapper<URI>public boolean isIndividualRolesPresent(URI instance)
RoleMapper
isIndividualRolesPresent in interface RoleMapper<URI>true if {link
RoleMapper.findIndividualRoles(Object, Collection) will modify the
collection.public boolean isTypeRecorded(URI type)
RoleMapper
isTypeRecorded in interface RoleMapper<URI>public void addFactory(Class<?> javaClass)
addFactory in interface RoleMapper<URI>
public void addFactory(Class<?> javaClass,
String type)
addFactory in interface RoleMapper<URI>public void addConcept(Class<?> role)
addConcept in interface RoleMapper<URI>
public void addConcept(Class<?> role,
String type)
addConcept in interface RoleMapper<URI>public void addBehaviour(Class<?> role)
addBehaviour in interface RoleMapper<URI>
public void addBehaviour(Class<?> role,
String type)
addBehaviour in interface RoleMapper<URI>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||