Package com.bazaarvoice.jolt.defaultr
Class Key
java.lang.Object
com.bazaarvoice.jolt.defaultr.Key
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private static final Key.KeyPrecedenceComparator
protected Object
private OPS
private static final String
private int
private int
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
applyChild
(Object container) Apply this Key to the defaultee.void
applyChildren
(Object defaultee) This is the main "recursive" method.protected abstract int
getOp()
int
int
boolean
Factory-ish method that recursively processes a Mapinvalid input: '<'String, Object> into a Setobjects. processSpec
(boolean parentIsArray, Map<String, Object> spec) Recursively walk the spec input tree.
-
Field Details
-
OR_INPUT_REGEX
- See Also:
-
keyComparator
-
isArrayOutput
private boolean isArrayOutput -
op
-
orCount
private int orCount -
outputArraySize
private int outputArraySize -
children
-
literalValue
-
rawKey
-
keyStrings
-
-
Constructor Details
-
Key
-
-
Method Details
-
parseSpec
Factory-ish method that recursively processes a Mapinvalid input: '<'String, Object> into a Setobjects. - Parameters:
spec
- Simple Jackson default Mapinvalid input: '<'String,Object> input- Returns:
- Set of Keys from this level in the spec
-
processSpec
Recursively walk the spec input tree. Handle arrays by telling DefaultrKeys if they need to be ArrayKeys, and to find the max default array length. -
applyChildren
This is the main "recursive" method. The defaultee should never be null, because the defaultee wasn't null, it was null and we created it, OR there was a mismatch between the Defaultr Spec and the input, and we didn't recurse. -
getLiteralIntKey
protected abstract int getLiteralIntKey() -
applyChild
Apply this Key to the defaultee. If this Key is a WildCard key, this may apply to many entries in the container. -
getOrCount
public int getOrCount() -
isArrayOutput
public boolean isArrayOutput() -
getOp
-
getOutputArraySize
public int getOutputArraySize() -
createOutputContainerObject
-