org.openrdf.elmo.rolemapper
Class SimpleRoleMapper<URI>

java.lang.Object
  extended by org.openrdf.elmo.rolemapper.SimpleRoleMapper<URI>

public class SimpleRoleMapper<URI>
extends Object

Tracks recorded roles and maps them to their subject type.

Author:
James Leigh

Constructor Summary
SimpleRoleMapper()
           
 
Method Summary
 Collection<Class<?>> findRoles(Collection<URI> types, Collection<Class<?>> classes)
           
 Collection<Class<?>> findRoles(URI type)
           
 URI getBaseType()
           
 boolean isTypeRecorded(URI type)
           
 void recordBaseRole(Class<?> role)
           
 Set<Class<?>> recordRoles(Set<Class<?>> role, URI uri)
           
 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

SimpleRoleMapper

public SimpleRoleMapper()
Method Detail

setRdfTypeFactory

public void setRdfTypeFactory(RdfTypeFactory<URI> vf)

getBaseType

public URI getBaseType()

findRoles

public Collection<Class<?>> findRoles(URI type)

findRoles

public Collection<Class<?>> findRoles(Collection<URI> types,
                                      Collection<Class<?>> classes)

isTypeRecorded

public boolean isTypeRecorded(URI type)

recordRoles

public Set<Class<?>> recordRoles(Set<Class<?>> role,
                                 URI uri)

recordBaseRole

public void recordBaseRole(Class<?> role)


Copyright © 2004-2008 Aduna. All Rights Reserved.