de.fau.cs.www8.jadeowlcodec
Class AbstractWrapperFactory<T extends WrappedIndividual>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWrapperFactory
public AbstractWrapperFactory(Uri.Concept uri,
java.lang.Class<T> wrapperClass)
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 individualrdfID - 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