org.weblab_project.core.helper
Class RDFHelperFactory

java.lang.Object
  extended by org.weblab_project.core.helper.RDFHelperFactory

public class RDFHelperFactory
extends java.lang.Object

Factory used to dynamically load an implementation of PoKHelper, PoKHelperExtended, ResourceHelper and ResourceHelperExtended.

Author:
EADS WebLab Team
See Also:
PoKHelperExtended, PoKHelper, ResourceHelper, ResourceHelperExtended

Field Summary
static java.lang.String FILENAME
          The properties file used.
 
Method Summary
static PoKHelper getPoKHelper(org.weblab_project.core.model.PieceOfKnowledge pok)
          Creates dynamically an instance of PoKHelper using the PieceOfKnowledge in parameter and the class defined in helper.properties as the implementation class.
static PoKHelperExtended getPoKHelperExtended(org.weblab_project.core.model.PieceOfKnowledge pok)
          Creates dynamically an instance of PoKHelperExtended using the PieceOfKnowledge in parameter and the class defined in helper.properties as the implementation class.
static java.lang.String getPoKHelperExtendedImplClassName()
          Use this to know the full name of the used implementation class of PoKHelperExtended.
static java.lang.String getPoKHelperImplClassName()
          Use this to know the full name of the used implementation class of PoKHelper.
static ResourceHelper getResourceHelper(org.weblab_project.core.model.Resource resource)
          Creates dynamically an instance of ResourceHelper using the Resource in parameter and the class defined in helper.properties as the implementation class.
static ResourceHelperExtended getResourceHelperExtended(org.weblab_project.core.model.Resource resource)
          Creates dynamically an instance of ResourceHelperExtended using the Resource in parameter and the class defined in helper.properties as the implementation class.
static java.lang.String getResourceHelperExtendedImplClassName()
          Use this to know the full name of the used implementation class of ResourceHelperExtended.
static java.lang.String getResourceHelperImplClassName()
          Use this to know the full name of the used implementation class of ResourceHelper.
static PoKHelper getSpecificPoKHelper(org.weblab_project.core.model.PieceOfKnowledge pok, java.lang.String pokHelperImpl)
          Creates dynamically an instance of PoKHelper using the PieceOfKnowledge and the implementation class in parameter.
static PoKHelperExtended getSpecificPoKHelperExtended(org.weblab_project.core.model.PieceOfKnowledge pok, java.lang.String pokHelperExtImpl)
          Creates dynamically an instance of PoKHelperExtended using the PieceOfKnowledge and the implementation class in parameter.
static ResourceHelper getSpecificResourceHelper(org.weblab_project.core.model.Resource resource, java.lang.String resHelperImpl)
          Creates dynamically an instance of ResourceHelper using the Resource and the implementation class in parameter.
static ResourceHelperExtended getSpecificResourceHelperExtended(org.weblab_project.core.model.Resource resource, java.lang.String resHelperExtImpl)
          Creates dynamically an instance of ResourceHelperExtended using the Resource and the implementation class in parameter.
static void setPoKHelperExtendedImplClassName(java.lang.String pokHelperExtendedImplClassName)
          Use this to set the class implementation name for PoKHelperExtended.
static void setPoKHelperImplClassName(java.lang.String pokHelperImplClassName)
          Use this to set the class implementation name for PoKHelper.
static void setResourceHelperExtendedImplClassName(java.lang.String resourceHelperExtendedImplClassName)
          Use this to set the class implementation name for ResourceHelperExtended.
static void setResourceHelperImplClassName(java.lang.String resourceHelperImplClassName)
          Use this to set the class implementation name for ResourceHelper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME

public static final java.lang.String FILENAME
The properties file used.

See Also:
Constant Field Values
Method Detail

getPoKHelper

public static PoKHelper getPoKHelper(org.weblab_project.core.model.PieceOfKnowledge pok)
Creates dynamically an instance of PoKHelper using the PieceOfKnowledge in parameter and the class defined in helper.properties as the implementation class.

Parameters:
pok - The PieceOfKnowledge to be handled with an PoKHelper.
Returns:
the PoKHelper's implementation for this PieceOfKnowledge.

getSpecificPoKHelper

public static PoKHelper getSpecificPoKHelper(org.weblab_project.core.model.PieceOfKnowledge pok,
                                             java.lang.String pokHelperImpl)
Creates dynamically an instance of PoKHelper using the PieceOfKnowledge and the implementation class in parameter.

Parameters:
pok - The PieceOfKnowledge to be handled with an PoKHelper.
pokHelperImpl - The implementation class name.
Returns:
the PoKHelper's implementation for this PieceOfKnowledge.

getPoKHelperExtended

public static PoKHelperExtended getPoKHelperExtended(org.weblab_project.core.model.PieceOfKnowledge pok)
Creates dynamically an instance of PoKHelperExtended using the PieceOfKnowledge in parameter and the class defined in helper.properties as the implementation class.

Parameters:
pok - The PieceOfKnowledge to be handled with an PoKHelperExtended.
Returns:
the PoKHelperExtended's implementation for this PieceOfKnowledge.

getSpecificPoKHelperExtended

public static PoKHelperExtended getSpecificPoKHelperExtended(org.weblab_project.core.model.PieceOfKnowledge pok,
                                                             java.lang.String pokHelperExtImpl)
Creates dynamically an instance of PoKHelperExtended using the PieceOfKnowledge and the implementation class in parameter.

Parameters:
pok - The PieceOfKnowledge to be handled with an PoKHelperExtended.
pokHelperExtImpl - The implementation class name.
Returns:
the PoKHelperExtended's implementation for this PieceOfKnowledge.

getPoKHelperExtendedImplClassName

public static java.lang.String getPoKHelperExtendedImplClassName()
Use this to know the full name of the used implementation class of PoKHelperExtended.

Returns:
implementation class name.

getPoKHelperImplClassName

public static java.lang.String getPoKHelperImplClassName()
Use this to know the full name of the used implementation class of PoKHelper.

Returns:
implementation class name.

getResourceHelperExtended

public static ResourceHelperExtended getResourceHelperExtended(org.weblab_project.core.model.Resource resource)
Creates dynamically an instance of ResourceHelperExtended using the Resource in parameter and the class defined in helper.properties as the implementation class.

Parameters:
resource - The Resource to be handled with an ResourceHelperExtended.
Returns:
the ResourceHelperExtended's implementation for this Resource.

getSpecificResourceHelperExtended

public static ResourceHelperExtended getSpecificResourceHelperExtended(org.weblab_project.core.model.Resource resource,
                                                                       java.lang.String resHelperExtImpl)
Creates dynamically an instance of ResourceHelperExtended using the Resource and the implementation class in parameter.

Parameters:
resource - The Resource to be handled with an ResourceHelperExtended.
resHelperExtImpl - The implementation class name.
Returns:
the ResourceHelperExtended's implementation for this Resource.

getResourceHelper

public static ResourceHelper getResourceHelper(org.weblab_project.core.model.Resource resource)
Creates dynamically an instance of ResourceHelper using the Resource in parameter and the class defined in helper.properties as the implementation class.

Parameters:
resource - The Resource to be handled with an ResourceHelper.
Returns:
the ResourceHelper's implementation for this Resource.

getSpecificResourceHelper

public static ResourceHelper getSpecificResourceHelper(org.weblab_project.core.model.Resource resource,
                                                       java.lang.String resHelperImpl)
Creates dynamically an instance of ResourceHelper using the Resource and the implementation class in parameter.

Parameters:
resource - The Resource to be handled with an ResourceHelper.
resHelperImpl - The implementation class name.
Returns:
the ResourceHelper's implementation for this Resource.

getResourceHelperImplClassName

public static java.lang.String getResourceHelperImplClassName()
Use this to know the full name of the used implementation class of ResourceHelper.

Returns:
Implementation class name.

getResourceHelperExtendedImplClassName

public static java.lang.String getResourceHelperExtendedImplClassName()
Use this to know the full name of the used implementation class of ResourceHelperExtended.

Returns:
Implementation class name.

setPoKHelperExtendedImplClassName

public static void setPoKHelperExtendedImplClassName(java.lang.String pokHelperExtendedImplClassName)
Use this to set the class implementation name for PoKHelperExtended. Only use it if you are working with two implementations. You'd rather use one implementation contained by the helper.properties file.

Parameters:
pokHelperExtendedImplClassName - The full name of the implementation class.

setPoKHelperImplClassName

public static void setPoKHelperImplClassName(java.lang.String pokHelperImplClassName)
Use this to set the class implementation name for PoKHelper. Only use it if you are working with two implementations. You'd rather use one implementation contained by the helper.properties file.

Parameters:
pokHelperImplClassName - The full name of the implementation class.

setResourceHelperImplClassName

public static void setResourceHelperImplClassName(java.lang.String resourceHelperImplClassName)
Use this to set the class implementation name for ResourceHelper. Only use it if you are working with two implementations. You'd rather use one implementation contained by the helper.properties file.

Parameters:
resourceHelperImplClassName - The full name of the implementation class.

setResourceHelperExtendedImplClassName

public static void setResourceHelperExtendedImplClassName(java.lang.String resourceHelperExtendedImplClassName)
Use this to set the class implementation name for ResourceHelperExtended. Only use it if you are working with two implementations. You'd rather use one implementation contained by the helper.properties file.

Parameters:
resourceHelperExtendedImplClassName - The full name of the implementation class.


Copyright © 2004-2009. All Rights Reserved.