|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.attr.func.FunctionFactory
public class FunctionFactory
FunctionFactory is used to create all attribute-related
functions. Three singleton factories are defined:
Please note that all functions are singletons, so any instance that is added to the factory will be the same one returned from the create methods. Most functions don't have state, so there is no need to have more than one.
| Method Summary | |
|---|---|
Function |
createFunction(String functionId)
Tries to get an instance of the specified function. |
Function |
createFunction(URI functionId)
Tries to get an instance of the specified function. |
static FunctionFactory |
getConditionInstance()
Returns a FuntionFactory that will only provide those functions that are usable in the root of the Condition. |
static FunctionFactory |
getGeneralInstance()
Returns a FunctionFactory that provides access to all the functions. |
static FunctionFactory |
getTargetInstance()
Returns a FunctionFactory that will only provide those functions that are usable in Target matching. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FunctionFactory getTargetInstance()
FunctionFactory for target functions.public static FunctionFactory getConditionInstance()
FunctionFactory for condition functionspublic static FunctionFactory getGeneralInstance()
FunctionFactory for all functions
public Function createFunction(URI functionId)
throws UnknownFunctionException
functionId - the name of the function
UnknownIdentifierException - if the name isn't known
UnknownFunctionException
public Function createFunction(String functionId)
throws UnknownFunctionException
functionId - the name of the function
UnknownFunctionException - if the Function is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||