com.spoledge.audao.parser.gql.impl.soft
Class SoftFunctionFactory

java.lang.Object
  extended by com.spoledge.audao.parser.gql.impl.soft.SoftFunctionFactory
Direct Known Subclasses:
SoftFunctionFactoryImpl

public abstract class SoftFunctionFactory
extends java.lang.Object

The factory.


Constructor Summary
SoftFunctionFactory()
           
 
Method Summary
 void defineSoftFunction(java.lang.String name, SoftFunction func)
          Defines a new function.
static SoftFunctionFactory getDefaultFactory()
           
abstract  SoftFunction getSoftFunction(java.lang.String name)
          Returns the associated function.
static void setDefaultFactory(SoftFunctionFactory factory)
          Sets the default factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftFunctionFactory

public SoftFunctionFactory()
Method Detail

getSoftFunction

public abstract SoftFunction getSoftFunction(java.lang.String name)
Returns the associated function.


defineSoftFunction

public void defineSoftFunction(java.lang.String name,
                               SoftFunction func)
Defines a new function. It a function with the same name already exists, then it should throw an exception. This is an optional operation.

Throws:
java.lang.UnsupportedOperationException - when this operation is not supported by the implementation

getDefaultFactory

public static SoftFunctionFactory getDefaultFactory()

setDefaultFactory

public static void setDefaultFactory(SoftFunctionFactory factory)
Sets the default factory. Call this method if you want to use your own factory implementations.



Copyright © 2010 Spolecne s.r.o. All Rights Reserved.