de.fau.cs.www8.jadeowlcodec
Class AbstractWrapperFactory<T extends WrappedIndividual>

java.lang.Object
  extended by de.fau.cs.www8.jadeowlcodec.AbstractWrapperFactory<T>
Direct Known Subclasses:
Address.Factory, Adress.Factory, AID.Factory, AID.Factory, AllDifferent.Factory, AllDifferent.Factory, Company.Factory, Company.Factory, Engage.Factory, Engage.Factory, Person.Factory, Person.Factory, Thing.Factory, Thing.Factory

public abstract class AbstractWrapperFactory<T extends WrappedIndividual>
extends java.lang.Object

abstract base class for factories for a custom accessors

Author:
Ulf Schreiber

Constructor Summary
AbstractWrapperFactory(Uri.Concept uri, java.lang.Class<T> wrapperClass)
           
 
Method Summary
protected static
<T extends WrappedIndividual>
AbstractWrapperFactory<T>
getFactoryInstance(java.lang.Class<T> wrapperInterface)
           
protected static
<T extends WrappedIndividual>
AbstractWrapperFactory<T>
getInstance(java.lang.Class<AbstractWrapperFactory<T>> factoryClass)
           
 Uri.Concept getUri()
           
protected  java.lang.Class<T> getWrapperClass()
           
static
<T extends WrappedIndividual>
T
inOtherASet(T wrapper, AssertionSet assertionSet)
           
static
<T extends WrappedIndividual>
T
inOtherASet(T wrapper, GenericIndividual assertionSetIndividual)
           
static
<T extends WrappedIndividual>
T
inOtherASet(T wrapper, WrappedIndividual assertionSetIndividual)
           
protected abstract  T protectedCreate(AssertionSet assertionSet, Uri.Individual rdfID)
          create a new Individual
protected abstract  T protectedWrap(GenericIndividual gi)
           
protected  T tryExistingWrapper(GenericIndividual gi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWrapperFactory

public AbstractWrapperFactory(Uri.Concept uri,
                              java.lang.Class<T> wrapperClass)
Method Detail

getUri

public Uri.Concept getUri()

protectedWrap

protected abstract T protectedWrap(GenericIndividual gi)
Parameters:
gi - the GenericIndividual to wrap
Returns:
returns a wrapper instance if compatible, otherwise returns null

tryExistingWrapper

protected T tryExistingWrapper(GenericIndividual gi)

protectedCreate

protected abstract T protectedCreate(AssertionSet assertionSet,
                                     Uri.Individual rdfID)
create a new Individual

Parameters:
assertionSet - the assertionSet in which to create the new individual
rdfID - the ID of the new individual
Returns:
Wrapper interface around the newly created individual

getWrapperClass

protected java.lang.Class<T> getWrapperClass()

getFactoryInstance

protected static <T extends WrappedIndividual> AbstractWrapperFactory<T> getFactoryInstance(java.lang.Class<T> wrapperInterface)

getInstance

protected static <T extends WrappedIndividual> AbstractWrapperFactory<T> getInstance(java.lang.Class<AbstractWrapperFactory<T>> factoryClass)

inOtherASet

public static <T extends WrappedIndividual> T inOtherASet(T wrapper,
                                                          WrappedIndividual assertionSetIndividual)

inOtherASet

public static <T extends WrappedIndividual> T inOtherASet(T wrapper,
                                                          GenericIndividual assertionSetIndividual)

inOtherASet

public static <T extends WrappedIndividual> T inOtherASet(T wrapper,
                                                          AssertionSet assertionSet)


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg