Class BasePathAndGroupReference
- java.lang.Object
-
- com.bazaarvoice.jolt.common.reference.BasePathAndGroupReference
-
- All Implemented Interfaces:
PathAndGroupReference
,PathReference
- Direct Known Subclasses:
AmpReference
,DollarReference
public abstract class BasePathAndGroupReference extends java.lang.Object implements PathAndGroupReference
All "References" extend this class and support three level of syntactic sugar Example with the AmpReference 1 "&" 2 "&0" 3 "&(0,0)" all three mean the same thing. References are used to look up values in a WalkedPath. In the CanonicalForm the first entry is how far up the WalkedPath to look for a LiteralPathElement, and the second entry is which part of that LiteralPathElement to ask for.
-
-
Constructor Summary
Constructors Constructor Description BasePathAndGroupReference(java.lang.String refStr)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCanonicalForm()
Builds the non-syntactic sugar / maximally expanded and unique form of this reference.int
getKeyGroup()
int
getPathIndex()
protected abstract char
getToken()
-
-
-
Method Detail
-
getToken
protected abstract char getToken()
-
getPathIndex
public int getPathIndex()
- Specified by:
getPathIndex
in interfacePathReference
-
getKeyGroup
public int getKeyGroup()
- Specified by:
getKeyGroup
in interfacePathAndGroupReference
-
getCanonicalForm
public java.lang.String getCanonicalForm()
Builds the non-syntactic sugar / maximally expanded and unique form of this reference.- Specified by:
getCanonicalForm
in interfacePathReference
- Returns:
- canonical form : aka "&" -> "&(0,0)
-
-