Package org.elasticsearch.test.rest.yaml
Class ParameterizableYamlXContentParser
java.lang.Object
org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.xcontent.XContentParser
public class ParameterizableYamlXContentParser
extends Object
implements org.elasticsearch.xcontent.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
org.elasticsearch.xcontent.XContentParser.NumberType, org.elasticsearch.xcontent.XContentParser.Token -
Constructor Summary
ConstructorsConstructorDescriptionParameterizableYamlXContentParser(org.elasticsearch.xcontent.XContentParser delegate, Map<String, ?> params) -
Method Summary
Modifier and TypeMethodDescriptionvoidallowDuplicateKeys(boolean allowDuplicateKeys) byte[]booleanvoidclose()org.elasticsearch.xcontent.XContentTypeorg.elasticsearch.xcontent.XContentParser.TokendoubledoubledoubleValue(boolean coerce) floatfloatfloatValue(boolean coerce) org.elasticsearch.xcontent.DeprecationHandlerorg.elasticsearch.xcontent.XContentLocationorg.elasticsearch.xcontent.NamedXContentRegistrybooleanintintValue()intintValue(boolean coerce) booleanbooleanisClosed()list()longlonglongValue(boolean coerce) map()map(Supplier<Map<String, T>> mapFactory, CheckedFunction<org.elasticsearch.xcontent.XContentParser, T, IOException> mapValueParser) <T> TnamedObject(Class<T> categoryClass, String name, Object context) org.elasticsearch.xcontent.XContentParser.Tokenorg.elasticsearch.xcontent.XContentParser.NumberTypeshortshortshortValue(boolean coerce) voidtext()char[]intint
-
Constructor Details
-
ParameterizableYamlXContentParser
-
-
Method Details
-
contentType
public org.elasticsearch.xcontent.XContentType contentType()- Specified by:
contentTypein interfaceorg.elasticsearch.xcontent.XContentParser
-
allowDuplicateKeys
public void allowDuplicateKeys(boolean allowDuplicateKeys) - Specified by:
allowDuplicateKeysin interfaceorg.elasticsearch.xcontent.XContentParser
-
nextToken
- Specified by:
nextTokenin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
nextFieldName
- Specified by:
nextFieldNamein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
skipChildren
- Specified by:
skipChildrenin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
currentToken
public org.elasticsearch.xcontent.XContentParser.Token currentToken()- Specified by:
currentTokenin interfaceorg.elasticsearch.xcontent.XContentParser
-
currentName
- Specified by:
currentNamein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
map
- Specified by:
mapin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
mapOrdered
- Specified by:
mapOrderedin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
mapStrings
- Specified by:
mapStringsin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
map
public <T> Map<String,T> map(Supplier<Map<String, T>> mapFactory, CheckedFunction<org.elasticsearch.xcontent.XContentParser, throws IOExceptionT, IOException> mapValueParser) - Specified by:
mapin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
list
- Specified by:
listin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
listOrderedMap
- Specified by:
listOrderedMapin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
text
- Specified by:
textin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
textOrNull
- Specified by:
textOrNullin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
charBufferOrNull
- Specified by:
charBufferOrNullin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
charBuffer
- Specified by:
charBufferin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
objectText
- Specified by:
objectTextin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
objectBytes
- Specified by:
objectBytesin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
hasTextCharacters
public boolean hasTextCharacters()- Specified by:
hasTextCharactersin interfaceorg.elasticsearch.xcontent.XContentParser
-
textCharacters
- Specified by:
textCharactersin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
textLength
- Specified by:
textLengthin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
textOffset
- Specified by:
textOffsetin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
numberValue
- Specified by:
numberValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
numberType
- Specified by:
numberTypein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
shortValue
- Specified by:
shortValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
intValue
- Specified by:
intValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
longValue
- Specified by:
longValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
floatValue
- Specified by:
floatValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
doubleValue
- Specified by:
doubleValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
shortValue
- Specified by:
shortValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
intValue
- Specified by:
intValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
longValue
- Specified by:
longValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
floatValue
- Specified by:
floatValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
doubleValue
- Specified by:
doubleValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
isBooleanValue
- Specified by:
isBooleanValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
booleanValue
- Specified by:
booleanValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
binaryValue
- Specified by:
binaryValuein interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
getTokenLocation
public org.elasticsearch.xcontent.XContentLocation getTokenLocation()- Specified by:
getTokenLocationin interfaceorg.elasticsearch.xcontent.XContentParser
-
namedObject
- Specified by:
namedObjectin interfaceorg.elasticsearch.xcontent.XContentParser- Throws:
IOException
-
getXContentRegistry
public org.elasticsearch.xcontent.NamedXContentRegistry getXContentRegistry()- Specified by:
getXContentRegistryin interfaceorg.elasticsearch.xcontent.XContentParser
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.elasticsearch.xcontent.XContentParser
-
getRestApiVersion
- Specified by:
getRestApiVersionin interfaceorg.elasticsearch.xcontent.XContentParser
-
getDeprecationHandler
public org.elasticsearch.xcontent.DeprecationHandler getDeprecationHandler()- Specified by:
getDeprecationHandlerin interfaceorg.elasticsearch.xcontent.XContentParser
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-