Class BaseParse.Builder<B extends BaseParse.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
BaseParse

public static class BaseParse.Builder<B extends BaseParse.Builder<B>> extends Element.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public BaseParse build()
      Finish building the BaseParse object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to BaseParse.
      Overrides:
      build in class Element.Builder<B extends BaseParse.Builder<B>>
      Returns:
      a new instance of BaseParse with the properties that were set in the Builder object.
    • setDisablePassthrough

      public B setDisablePassthrough(boolean disablePassthrough)
      If set to true, baseparse will unconditionally force parsing of the incoming data. This can be required in the rare cases where the incoming side-data (caps, pts, dts, ...) is not trusted by the user and wants to force validation and parsing of the incoming data. If set to false, decision of whether to parse the data or not is up to the implementation (standard behaviour).
      Parameters:
      disablePassthrough - the value for the disable-passthrough property
      Returns:
      the Builder instance is returned, to allow method chaining