Class JSONWriterRecord.Level
- java.lang.Object
-
- org.eclipse.persistence.oxm.record.JSONWriterRecord.Level
-
- Enclosing class:
- JSONWriterRecord
protected static class JSONWriterRecord.Level extends java.lang.Object
Instances of this class are used to maintain state about the current level of the JSON message being marshalled.
-
-
Constructor Summary
Constructors Constructor Description Level(boolean value, boolean needToOpen, boolean nestedArray)
Level(boolean value, boolean needToOpen, boolean nestedArray, JSONWriterRecord.Level previousLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONWriterRecord.Level
getPreviousLevel()
boolean
isCollection()
boolean
isEmptyCollection()
boolean
isFirst()
boolean
isNeedToCloseComplex()
boolean
isNeedToOpenComplex()
boolean
isNestedArray()
void
setCollection(boolean collection)
void
setEmptyCollection(boolean emptyCollection)
void
setFirst(boolean value)
void
setNeedToCloseComplex(boolean needToCloseComplex)
void
setNeedToOpenComplex(boolean needToOpenComplex)
void
setNestedArray(boolean nestedArray)
-
-
-
Constructor Detail
-
Level
public Level(boolean value, boolean needToOpen, boolean nestedArray)
-
Level
public Level(boolean value, boolean needToOpen, boolean nestedArray, JSONWriterRecord.Level previousLevel)
-
-
Method Detail
-
isNeedToOpenComplex
public boolean isNeedToOpenComplex()
-
setNeedToOpenComplex
public void setNeedToOpenComplex(boolean needToOpenComplex)
-
isNeedToCloseComplex
public boolean isNeedToCloseComplex()
-
setNeedToCloseComplex
public void setNeedToCloseComplex(boolean needToCloseComplex)
-
isEmptyCollection
public boolean isEmptyCollection()
-
setEmptyCollection
public void setEmptyCollection(boolean emptyCollection)
-
isFirst
public boolean isFirst()
-
setFirst
public void setFirst(boolean value)
-
isCollection
public boolean isCollection()
-
setCollection
public void setCollection(boolean collection)
-
getPreviousLevel
public JSONWriterRecord.Level getPreviousLevel()
-
isNestedArray
public boolean isNestedArray()
-
setNestedArray
public void setNestedArray(boolean nestedArray)
-
-