Package org.elasticsearch.test.rest.yaml
Class ParameterizableYamlXContentParser
java.lang.Object
org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
- All Implemented Interfaces:
Closeable,AutoCloseable,XContentParser
a wrapper around YamlXContentParser that allows for parameter replacement in the yaml file
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.XContentParser
XContentParser.NumberType, XContentParser.Token -
Constructor Summary
ConstructorsConstructorDescriptionParameterizableYamlXContentParser(XContentParser delegate, Map<String, ?> params) -
Method Summary
Modifier and TypeMethodDescriptionvoidallowDuplicateKeys(boolean allowDuplicateKeys) byte[]booleanvoidclose()doubledoubledoubleValue(boolean coerce) floatfloatfloatValue(boolean coerce) booleanintintValue()intintValue(boolean coerce) booleanbooleanisClosed()list()longlonglongValue(boolean coerce) map()map(Supplier<Map<String, T>> mapFactory, CheckedFunction<XContentParser, T, IOException> mapValueParser) <T> TnamedObject(Class<T> categoryClass, String name, Object context) shortshortshortValue(boolean coerce) voidtext()char[]intintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.XContentParser
supportsList, supportsMap, switchParser
-
Constructor Details
-
ParameterizableYamlXContentParser
-
-
Method Details
-
contentType
- Specified by:
contentTypein interfaceXContentParser
-
allowDuplicateKeys
public void allowDuplicateKeys(boolean allowDuplicateKeys) - Specified by:
allowDuplicateKeysin interfaceXContentParser
-
nextToken
- Specified by:
nextTokenin interfaceXContentParser- Throws:
IOException
-
nextFieldName
- Specified by:
nextFieldNamein interfaceXContentParser- Throws:
IOException
-
skipChildren
- Specified by:
skipChildrenin interfaceXContentParser- Throws:
IOException
-
currentToken
- Specified by:
currentTokenin interfaceXContentParser
-
currentName
- Specified by:
currentNamein interfaceXContentParser- Throws:
IOException
-
map
- Specified by:
mapin interfaceXContentParser- Throws:
IOException
-
mapOrdered
- Specified by:
mapOrderedin interfaceXContentParser- Throws:
IOException
-
mapStrings
- Specified by:
mapStringsin interfaceXContentParser- Throws:
IOException
-
map
public <T> Map<String,T> map(Supplier<Map<String, T>> mapFactory, CheckedFunction<XContentParser, throws IOExceptionT, IOException> mapValueParser) - Specified by:
mapin interfaceXContentParser- Throws:
IOException
-
list
- Specified by:
listin interfaceXContentParser- Throws:
IOException
-
listOrderedMap
- Specified by:
listOrderedMapin interfaceXContentParser- Throws:
IOException
-
text
- Specified by:
textin interfaceXContentParser- Throws:
IOException
-
textOrNull
- Specified by:
textOrNullin interfaceXContentParser- Throws:
IOException
-
optimizedText
- Specified by:
optimizedTextin interfaceXContentParser- Throws:
IOException
-
optimizedTextOrNull
- Specified by:
optimizedTextOrNullin interfaceXContentParser- Throws:
IOException
-
charBufferOrNull
- Specified by:
charBufferOrNullin interfaceXContentParser- Throws:
IOException
-
charBuffer
- Specified by:
charBufferin interfaceXContentParser- Throws:
IOException
-
objectText
- Specified by:
objectTextin interfaceXContentParser- Throws:
IOException
-
objectBytes
- Specified by:
objectBytesin interfaceXContentParser- Throws:
IOException
-
hasTextCharacters
public boolean hasTextCharacters()- Specified by:
hasTextCharactersin interfaceXContentParser
-
textCharacters
- Specified by:
textCharactersin interfaceXContentParser- Throws:
IOException
-
textLength
- Specified by:
textLengthin interfaceXContentParser- Throws:
IOException
-
textOffset
- Specified by:
textOffsetin interfaceXContentParser- Throws:
IOException
-
numberValue
- Specified by:
numberValuein interfaceXContentParser- Throws:
IOException
-
numberType
- Specified by:
numberTypein interfaceXContentParser- Throws:
IOException
-
shortValue
- Specified by:
shortValuein interfaceXContentParser- Throws:
IOException
-
intValue
- Specified by:
intValuein interfaceXContentParser- Throws:
IOException
-
longValue
- Specified by:
longValuein interfaceXContentParser- Throws:
IOException
-
floatValue
- Specified by:
floatValuein interfaceXContentParser- Throws:
IOException
-
doubleValue
- Specified by:
doubleValuein interfaceXContentParser- Throws:
IOException
-
shortValue
- Specified by:
shortValuein interfaceXContentParser- Throws:
IOException
-
intValue
- Specified by:
intValuein interfaceXContentParser- Throws:
IOException
-
longValue
- Specified by:
longValuein interfaceXContentParser- Throws:
IOException
-
floatValue
- Specified by:
floatValuein interfaceXContentParser- Throws:
IOException
-
doubleValue
- Specified by:
doubleValuein interfaceXContentParser- Throws:
IOException
-
isBooleanValue
- Specified by:
isBooleanValuein interfaceXContentParser- Throws:
IOException
-
booleanValue
- Specified by:
booleanValuein interfaceXContentParser- Throws:
IOException
-
binaryValue
- Specified by:
binaryValuein interfaceXContentParser- Throws:
IOException
-
getTokenLocation
- Specified by:
getTokenLocationin interfaceXContentParser
-
getCurrentLocation
- Specified by:
getCurrentLocationin interfaceXContentParser
-
namedObject
- Specified by:
namedObjectin interfaceXContentParser- Throws:
IOException
-
getXContentRegistry
- Specified by:
getXContentRegistryin interfaceXContentParser
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceXContentParser
-
getRestApiVersion
- Specified by:
getRestApiVersionin interfaceXContentParser
-
getDeprecationHandler
- Specified by:
getDeprecationHandlerin interfaceXContentParser
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-