Package com.hybris.cockpitng.json.impl
Class WidgetJsonParser
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonParser
-
- com.hybris.cockpitng.json.impl.WidgetJsonParser
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Closeable,java.lang.AutoCloseable
public class WidgetJsonParser extends com.fasterxml.jackson.core.JsonParser
-
-
Constructor Summary
Constructors Constructor Description WidgetJsonParser(com.fasterxml.jackson.core.JsonParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanUseSchema(com.fasterxml.jackson.core.FormatSchema schema)voidclearCurrentToken()voidclose()com.fasterxml.jackson.core.JsonParserconfigure(com.fasterxml.jackson.core.JsonParser.Feature f, boolean state)com.fasterxml.jackson.core.JsonParserdisable(com.fasterxml.jackson.core.JsonParser.Feature f)com.fasterxml.jackson.core.JsonParserenable(com.fasterxml.jackson.core.JsonParser.Feature f)java.math.BigIntegergetBigIntegerValue()byte[]getBinaryValue()byte[]getBinaryValue(com.fasterxml.jackson.core.Base64Variant base64Variant)booleangetBooleanValue()bytegetByteValue()com.fasterxml.jackson.core.ObjectCodecgetCodec()com.fasterxml.jackson.core.JsonLocationgetCurrentLocation()java.lang.StringgetCurrentName()com.fasterxml.jackson.core.JsonTokengetCurrentToken()intgetCurrentTokenId()java.math.BigDecimalgetDecimalValue()doublegetDoubleValue()java.lang.ObjectgetEmbeddedObject()floatgetFloatValue()java.lang.ObjectgetInputSource()intgetIntValue()com.fasterxml.jackson.core.JsonTokengetLastClearedToken()longgetLongValue()com.fasterxml.jackson.core.JsonParser.NumberTypegetNumberType()java.lang.NumbergetNumberValue()com.fasterxml.jackson.core.JsonStreamContextgetParsingContext()shortgetShortValue()java.lang.StringgetText()char[]getTextCharacters()intgetTextLength()intgetTextOffset()com.fasterxml.jackson.core.JsonLocationgetTokenLocation()booleangetValueAsBoolean()booleangetValueAsBoolean(boolean defaultValue)doublegetValueAsDouble()doublegetValueAsDouble(double defaultValue)intgetValueAsInt()intgetValueAsInt(int defaultValue)longgetValueAsLong()longgetValueAsLong(long defaultValue)java.lang.StringgetValueAsString(java.lang.String def)WidgetInstanceManagergetWidgetInstanceManager()booleanhasCurrentToken()booleanhasTextCharacters()booleanhasToken(com.fasterxml.jackson.core.JsonToken t)booleanhasTokenId(int id)booleanisClosed()booleanisEnabled(com.fasterxml.jackson.core.JsonParser.Feature f)booleanisExpectedStartArrayToken()java.lang.BooleannextBooleanValue()booleannextFieldName(com.fasterxml.jackson.core.SerializableString str)intnextIntValue(int defaultValue)longnextLongValue(long defaultValue)java.lang.StringnextTextValue()com.fasterxml.jackson.core.JsonTokennextToken()com.fasterxml.jackson.core.JsonTokennextValue()voidoverrideCurrentName(java.lang.String name)<T> TreadValueAs(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef)<T> TreadValueAs(java.lang.Class<T> valueType)com.fasterxml.jackson.databind.JsonNodereadValueAsTree()<T> java.util.Iterator<T>readValuesAs(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)<T> java.util.Iterator<T>readValuesAs(java.lang.Class<T> valueType)intreleaseBuffered(java.io.OutputStream out)intreleaseBuffered(java.io.Writer w)voidsetCodec(com.fasterxml.jackson.core.ObjectCodec objectCodec)voidsetSchema(com.fasterxml.jackson.core.FormatSchema schema)com.fasterxml.jackson.core.JsonParserskipChildren()com.fasterxml.jackson.core.Versionversion()-
Methods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canReadObjectId, canReadTypeId, currentName, currentToken, currentTokenId, finishToken, getCurrentValue, getFeatureMask, getFormatFeatures, getNonBlockingInputFeeder, getObjectId, getSchema, getText, getTypeId, getValueAsString, isEnabled, isExpectedStartObjectToken, isNaN, nextFieldName, overrideFormatFeatures, overrideStdFeatures, readBinaryValue, readBinaryValue, requiresCustomCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError
-
-
-
-
Method Detail
-
getWidgetInstanceManager
public WidgetInstanceManager getWidgetInstanceManager()
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()
- Specified by:
getCodecin classcom.fasterxml.jackson.core.JsonParser
-
setCodec
public void setCodec(com.fasterxml.jackson.core.ObjectCodec objectCodec)
- Specified by:
setCodecin classcom.fasterxml.jackson.core.JsonParser
-
setSchema
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
- Overrides:
setSchemain classcom.fasterxml.jackson.core.JsonParser
-
canUseSchema
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
- Overrides:
canUseSchemain classcom.fasterxml.jackson.core.JsonParser
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.core.JsonParser
-
getInputSource
public java.lang.Object getInputSource()
- Overrides:
getInputSourcein classcom.fasterxml.jackson.core.JsonParser
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
releaseBuffered
public int releaseBuffered(java.io.OutputStream out) throws java.io.IOException- Overrides:
releaseBufferedin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
releaseBuffered
public int releaseBuffered(java.io.Writer w) throws java.io.IOException- Overrides:
releaseBufferedin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
enable
public com.fasterxml.jackson.core.JsonParser enable(com.fasterxml.jackson.core.JsonParser.Feature f)
- Overrides:
enablein classcom.fasterxml.jackson.core.JsonParser
-
disable
public com.fasterxml.jackson.core.JsonParser disable(com.fasterxml.jackson.core.JsonParser.Feature f)
- Overrides:
disablein classcom.fasterxml.jackson.core.JsonParser
-
configure
public com.fasterxml.jackson.core.JsonParser configure(com.fasterxml.jackson.core.JsonParser.Feature f, boolean state)- Overrides:
configurein classcom.fasterxml.jackson.core.JsonParser
-
isEnabled
public boolean isEnabled(com.fasterxml.jackson.core.JsonParser.Feature f)
- Overrides:
isEnabledin classcom.fasterxml.jackson.core.JsonParser
-
nextToken
public com.fasterxml.jackson.core.JsonToken nextToken() throws java.io.IOException- Specified by:
nextTokenin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextValue
public com.fasterxml.jackson.core.JsonToken nextValue() throws java.io.IOException- Specified by:
nextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextFieldName
public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString str) throws java.io.IOException- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextTextValue
public java.lang.String nextTextValue() throws java.io.IOException- Overrides:
nextTextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextIntValue
public int nextIntValue(int defaultValue) throws java.io.IOException- Overrides:
nextIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextLongValue
public long nextLongValue(long defaultValue) throws java.io.IOException- Overrides:
nextLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextBooleanValue
public java.lang.Boolean nextBooleanValue() throws java.io.IOException- Overrides:
nextBooleanValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
skipChildren
public com.fasterxml.jackson.core.JsonParser skipChildren() throws java.io.IOException- Specified by:
skipChildrenin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentToken
public com.fasterxml.jackson.core.JsonToken getCurrentToken()
- Specified by:
getCurrentTokenin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentTokenId
public int getCurrentTokenId()
- Specified by:
getCurrentTokenIdin classcom.fasterxml.jackson.core.JsonParser
-
hasCurrentToken
public boolean hasCurrentToken()
- Specified by:
hasCurrentTokenin classcom.fasterxml.jackson.core.JsonParser
-
hasTokenId
public boolean hasTokenId(int id)
- Specified by:
hasTokenIdin classcom.fasterxml.jackson.core.JsonParser
-
hasToken
public boolean hasToken(com.fasterxml.jackson.core.JsonToken t)
- Specified by:
hasTokenin classcom.fasterxml.jackson.core.JsonParser
-
clearCurrentToken
public void clearCurrentToken()
- Specified by:
clearCurrentTokenin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentName
public java.lang.String getCurrentName() throws java.io.IOException- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getParsingContext
public com.fasterxml.jackson.core.JsonStreamContext getParsingContext()
- Specified by:
getParsingContextin classcom.fasterxml.jackson.core.JsonParser
-
getTokenLocation
public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
- Specified by:
getTokenLocationin classcom.fasterxml.jackson.core.JsonParser
-
getCurrentLocation
public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
- Specified by:
getCurrentLocationin classcom.fasterxml.jackson.core.JsonParser
-
getLastClearedToken
public com.fasterxml.jackson.core.JsonToken getLastClearedToken()
- Specified by:
getLastClearedTokenin classcom.fasterxml.jackson.core.JsonParser
-
overrideCurrentName
public void overrideCurrentName(java.lang.String name)
- Specified by:
overrideCurrentNamein classcom.fasterxml.jackson.core.JsonParser
-
isExpectedStartArrayToken
public boolean isExpectedStartArrayToken()
- Overrides:
isExpectedStartArrayTokenin classcom.fasterxml.jackson.core.JsonParser
-
getText
public java.lang.String getText() throws java.io.IOException- Specified by:
getTextin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getTextCharacters
public char[] getTextCharacters() throws java.io.IOException- Specified by:
getTextCharactersin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getTextLength
public int getTextLength() throws java.io.IOException- Specified by:
getTextLengthin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getTextOffset
public int getTextOffset() throws java.io.IOException- Specified by:
getTextOffsetin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
- Specified by:
hasTextCharactersin classcom.fasterxml.jackson.core.JsonParser
-
getNumberValue
public java.lang.Number getNumberValue() throws java.io.IOException- Specified by:
getNumberValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getNumberType
public com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() throws java.io.IOException- Specified by:
getNumberTypein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getByteValue
public byte getByteValue() throws java.io.IOException- Overrides:
getByteValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getShortValue
public short getShortValue() throws java.io.IOException- Overrides:
getShortValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getIntValue
public int getIntValue() throws java.io.IOException- Specified by:
getIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getLongValue
public long getLongValue() throws java.io.IOException- Specified by:
getLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBigIntegerValue
public java.math.BigInteger getBigIntegerValue() throws java.io.IOException- Specified by:
getBigIntegerValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getFloatValue
public float getFloatValue() throws java.io.IOException- Specified by:
getFloatValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDoubleValue
public double getDoubleValue() throws java.io.IOException- Specified by:
getDoubleValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getDecimalValue
public java.math.BigDecimal getDecimalValue() throws java.io.IOException- Specified by:
getDecimalValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBooleanValue
public boolean getBooleanValue() throws java.io.IOException- Overrides:
getBooleanValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getEmbeddedObject
public java.lang.Object getEmbeddedObject() throws java.io.IOException- Overrides:
getEmbeddedObjectin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBinaryValue
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant base64Variant) throws java.io.IOException- Specified by:
getBinaryValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBinaryValue
public byte[] getBinaryValue() throws java.io.IOException- Overrides:
getBinaryValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsInt
public int getValueAsInt() throws java.io.IOException- Overrides:
getValueAsIntin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsInt
public int getValueAsInt(int defaultValue) throws java.io.IOException- Overrides:
getValueAsIntin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsLong
public long getValueAsLong() throws java.io.IOException- Overrides:
getValueAsLongin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsLong
public long getValueAsLong(long defaultValue) throws java.io.IOException- Overrides:
getValueAsLongin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsDouble
public double getValueAsDouble() throws java.io.IOException- Overrides:
getValueAsDoublein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsDouble
public double getValueAsDouble(double defaultValue) throws java.io.IOException- Overrides:
getValueAsDoublein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsBoolean
public boolean getValueAsBoolean() throws java.io.IOException- Overrides:
getValueAsBooleanin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsBoolean
public boolean getValueAsBoolean(boolean defaultValue) throws java.io.IOException- Overrides:
getValueAsBooleanin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getValueAsString
public java.lang.String getValueAsString(java.lang.String def) throws java.io.IOException- Specified by:
getValueAsStringin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readValueAs
public <T> T readValueAs(java.lang.Class<T> valueType) throws java.io.IOException- Overrides:
readValueAsin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readValueAs
public <T> T readValueAs(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef) throws java.io.IOException- Overrides:
readValueAsin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readValuesAs
public <T> java.util.Iterator<T> readValuesAs(java.lang.Class<T> valueType) throws java.io.IOException- Overrides:
readValuesAsin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readValuesAs
public <T> java.util.Iterator<T> readValuesAs(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws java.io.IOException- Overrides:
readValuesAsin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readValueAsTree
public com.fasterxml.jackson.databind.JsonNode readValueAsTree() throws java.io.IOException- Overrides:
readValueAsTreein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
-