Class MarshallingTraverseSession.Builder<SELF extends MarshallingTraverseSession.Builder<SELF>>

java.lang.Object
org.apache.juneau.marshall.ContextSession.Builder<SELF>
org.apache.juneau.marshall.MarshallingSession.Builder<SELF>
org.apache.juneau.marshall.MarshallingTraverseSession.Builder<SELF>
Direct Known Subclasses:
JsonSchemaGeneratorSession.Builder, SerializerSession.Builder
Enclosing class:
MarshallingTraverseSession

public abstract static class MarshallingTraverseSession.Builder<SELF extends MarshallingTraverseSession.Builder<SELF>> extends MarshallingSession.Builder<SELF>
Builder class.
  • Constructor Details

  • Method Details

    • initialDepth

      public SELF initialDepth(int value)
      Initial depth.
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • property

      public SELF property(String key, Object value)
      Description copied from class: ContextSession.Builder
      Adds a property to this session.

      If the key matches a known session property (e.g. "debug" or "ContextSession.debug"), the value is converted via BasicConverter and routed to the corresponding typed setter. Unknown keys are stored in the raw session properties map.

      Overrides:
      property in class MarshallingSession.Builder<SELF extends MarshallingTraverseSession.Builder<SELF>>
      Parameters:
      key - The property key.
      Cannot be null.
      value - The property value.
      Can be null (resets typed properties to their default; removes raw properties).
      Returns:
      This object.