org.openrdf.repository.object.managers.helpers
Class TypeMapper

java.lang.Object
  extended by org.openrdf.repository.object.managers.helpers.TypeMapper
All Implemented Interfaces:
Cloneable

public class TypeMapper
extends Object
implements Cloneable

Tracks recorded roles and maps them to their subject type.

Author:
James Leigh

Constructor Summary
TypeMapper()
           
 
Method Summary
 TypeMapper clone()
           
 URI findType(Class<?> role)
          Finds the rdfs:Class for this Java Class.
 void recordRole(Class<?> role, URI rdfType)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapper

public TypeMapper()
Method Detail

clone

public TypeMapper clone()
Overrides:
clone in class Object

findType

public URI findType(Class<?> role)
Finds the rdfs:Class for this Java Class.

Parameters:
javaClass -
Returns:
URI of the rdf:Class for this Java Class or null.

recordRole

public void recordRole(Class<?> role,
                       URI rdfType)


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.