Class ChainrEntry
java.lang.Object
com.bazaarvoice.jolt.chainr.spec.ChainrEntry
Helper class that encapsulates the information one of the individual transform entries in
the Chainr spec's list.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChainrEntry(int index, Object chainrEntryObj, ClassLoader classLoader) Process an element from the Chainr Spec into a ChainrEntry class. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringextractOperationString(Map<String, Object> chainrEntryMap) Generate an error message suffix what lists the index of the ChainrEntry in the overall ChainrSpec.Class<? extends JoltTransform> getSpec()booleanprivate Class<? extends JoltTransform> loadJoltTransformClass(ClassLoader classLoader)
-
Field Details
-
STOCK_TRANSFORMS
-
OPERATION_KEY
- See Also:
-
SPEC_KEY
- See Also:
-
index
private final int index -
spec
-
operationClassName
-
joltTransformClass
-
isSpecDriven
private final boolean isSpecDriven
-
-
Constructor Details
-
ChainrEntry
Process an element from the Chainr Spec into a ChainrEntry class. This method tries to validate the syntax of the Chainr spec, whereas the ChainrInstantiator deals with loading the Transform classes.- Parameters:
index- the index of the chainrEntryObj, used in reporting errorschainrEntryObj- the unknown Object from the Chainr list
-
-
Method Details
-
extractOperationString
-
loadJoltTransformClass
-
getErrorMessageIndexSuffix
Generate an error message suffix what lists the index of the ChainrEntry in the overall ChainrSpec. -
getSpec
- Returns:
- Spec for the transform, can be null
-
getJoltTransformClass
- Returns:
- Class instance specified by this ChainrEntry
-
isSpecDriven
public boolean isSpecDriven()- Returns:
- true if the Jolt Transform specified by this ChainrEntry implements the SpecTransform interface
-