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 AddElementsaddElements()AddNamedOperationaddNamedOperation()AddNamedViewaddNamedView()GenerateElementsgenerateElements()OperationgenerateExample(Class<? extends Operation> opClass)Generates an example for anyOperationclass.voidgenerateExamples()GenerateObjectsgenerateObjects()GetAdjacentIdsgetAdjacentIds()GetAllElementsgetAllElements()GetElementsgetElements()GetWalksgetWalks()IfifOperation()MapmapOperation()Maxmax()Minmin()OperationChainoperationChain()Sortsort()ToMaptoMap()WhilewhileOperation()
-
-
-
Method Detail
-
generateExamples
@PostConstruct public void generateExamples()
-
generateExample
public Operation generateExample(Class<? extends Operation> opClass) throws IllegalAccessException, InstantiationException
Description copied from interface:ExamplesFactoryGenerates an example for anyOperationclass.- Specified by:
generateExamplein 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()
-
-