Class 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 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
    • 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)