Class JsonRecord.Level
- java.lang.Object
-
- org.eclipse.persistence.oxm.record.JsonRecord.Level
-
- Direct Known Subclasses:
JsonBuilderRecord.Level
- Enclosing class:
- JsonRecord<T extends JsonRecord.Level>
protected static class JsonRecord.Level extends java.lang.Object
Instances of this class are used to maintain state about the current level of the JSON message being marshalled.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
emptyCollection
protected boolean
emptyCollectionGenerated
protected boolean
isCollection
protected boolean
isComplex
protected java.lang.String
keyName
protected boolean
nestedArray
protected JsonRecord.Level
parentLevel
-
Constructor Summary
Constructors Constructor Description Level(boolean isCollection, JsonRecord.Level parentLevel, boolean nestedArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSkip()
java.lang.String
getKeyName()
protected int
getSkipCount()
boolean
isCollection()
boolean
isComplex()
boolean
isEmptyCollection()
boolean
isEmptyCollectionGenerated()
boolean
isNestedArray()
protected boolean
notSkip()
void
setCollection(boolean isCollection)
void
setComplex(boolean isComplex)
void
setEmptyCollection(boolean emptyCollection)
void
setEmptyCollectionGenerated(boolean emptyCollectionGenerated)
void
setKeyName(java.lang.String keyName)
void
setNestedArray(boolean nestedArray)
-
-
-
Field Detail
-
isCollection
protected boolean isCollection
-
emptyCollection
protected boolean emptyCollection
-
emptyCollectionGenerated
protected boolean emptyCollectionGenerated
-
keyName
protected java.lang.String keyName
-
isComplex
protected boolean isComplex
-
nestedArray
protected boolean nestedArray
-
parentLevel
protected JsonRecord.Level parentLevel
-
-
Constructor Detail
-
Level
public Level(boolean isCollection, JsonRecord.Level parentLevel, boolean nestedArray)
-
-
Method Detail
-
addSkip
protected void addSkip()
-
notSkip
protected boolean notSkip()
-
getSkipCount
protected int getSkipCount()
-
isCollection
public boolean isCollection()
-
setCollection
public void setCollection(boolean isCollection)
-
getKeyName
public java.lang.String getKeyName()
-
setKeyName
public void setKeyName(java.lang.String keyName)
-
isEmptyCollection
public boolean isEmptyCollection()
-
setEmptyCollection
public void setEmptyCollection(boolean emptyCollection)
-
isEmptyCollectionGenerated
public boolean isEmptyCollectionGenerated()
-
setEmptyCollectionGenerated
public void setEmptyCollectionGenerated(boolean emptyCollectionGenerated)
-
isComplex
public boolean isComplex()
-
setComplex
public void setComplex(boolean isComplex)
-
isNestedArray
public boolean isNestedArray()
-
setNestedArray
public void setNestedArray(boolean nestedArray)
-
-