Package oracle.dbtools.plugin.api.json
Interface JSONToken
-
public interface JSONTokenA token in a JSON character stream.JSONTokeninstances are produced byJSONReader(and can also be written toJSONWriterstreams using theJSONWriter.append(JSONToken)method).- Author:
- cdivilly
- See Also:
JSONToken.Type
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJSONToken.TypeEnumerates the different kinds of tokens that occur in a JSON stream
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbooleanValue()Returns the value of a property as aBooleaninstance.java.lang.NumbernumberValue()Returns the value of a property as aNumberinstance.java.lang.StringpropertyName()Returns the name of a property.java.lang.StringstringValue()Returns the value of a property as aString.JSONToken.Typetype()This token's type
-
-
-
Method Detail
-
booleanValue
boolean booleanValue()
Returns the value of a property as aBooleaninstance. Only permissible on instances wheretype()==JSONToken.Type.BOOLEAN_VALUE.- Returns:
- a boolean value
-
numberValue
java.lang.Number numberValue()
Returns the value of a property as aNumberinstance. Only permissible on instances wheretype()==JSONToken.Type.NUMERIC_VALUE.- Returns:
- a numeric value
-
propertyName
java.lang.String propertyName()
Returns the name of a property. Only permissible on instances wheretype()==JSONToken.Type.PROPERTY_NAME.- Returns:
- the property name
-
stringValue
java.lang.String stringValue()
Returns the value of a property as aString. Only permissible on instsances wheretype()==JSONToken.Type.STRING_VALUE- Returns:
- String value
-
type
JSONToken.Type type()
This token's type- Returns:
- token type
-
-