Package uk.gov.gchq.gaffer.rest.factory
Class AbstractExamplesFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.factory.AbstractExamplesFactory
-
- All Implemented Interfaces:
ExamplesFactory
- Direct Known Subclasses:
DefaultExamplesFactory
,DefaultExamplesFactory
public abstract class AbstractExamplesFactory extends Object implements ExamplesFactory
Abstract Examples factory which can create examples using a schema and class inspection.
-
-
Constructor Summary
Constructors Constructor Description AbstractExamplesFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddElements
addElements()
AddNamedOperation
addNamedOperation()
AddNamedView
addNamedView()
GenerateElements
generateElements()
Operation
generateExample(Class<? extends Operation> opClass)
Generates an example for anyOperation
class.void
generateExamples()
GenerateObjects
generateObjects()
GetAdjacentIds
getAdjacentIds()
GetAllElements
getAllElements()
GetElements
getElements()
GetWalks
getWalks()
If
ifOperation()
Map
mapOperation()
Max
max()
Min
min()
OperationChain
operationChain()
Sort
sort()
ToMap
toMap()
While
whileOperation()
-
-
-
Method Detail
-
generateExamples
@PostConstruct public void generateExamples()
-
generateExample
public Operation generateExample(Class<? extends Operation> opClass) throws IllegalAccessException, InstantiationException
Description copied from interface:ExamplesFactory
Generates an example for anyOperation
class.- Specified by:
generateExample
in interfaceExamplesFactory
- Parameters:
opClass
- the operation to create an example for- Returns:
- the example class
- Throws:
IllegalAccessException
- if the operation could not be createdInstantiationException
- if the operation could not be created
-
getAdjacentIds
public GetAdjacentIds getAdjacentIds()
-
getAllElements
public GetAllElements getAllElements()
-
getElements
public GetElements getElements()
-
addElements
public AddElements addElements()
-
generateObjects
public GenerateObjects generateObjects()
-
generateElements
public GenerateElements generateElements()
-
sort
public Sort sort()
-
max
public Max max()
-
min
public Min min()
-
toMap
public ToMap toMap()
-
getWalks
public GetWalks getWalks()
-
addNamedOperation
public AddNamedOperation addNamedOperation()
-
addNamedView
public AddNamedView addNamedView()
-
ifOperation
public If ifOperation()
-
whileOperation
public While whileOperation()
-
mapOperation
public Map mapOperation()
-
operationChain
public OperationChain operationChain()
-
-