Class XmlFileOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • obj

        @Stability(Experimental)
        public XmlFileOptions.Builder obj​(Object obj)
        Sets the value of ObjectFileOptions.getObj()
        Parameters:
        obj - The object that will be serialized. You can modify the object's contents before synthesis. Serialization of the object is similar to JSON.stringify with few enhancements:

        • values that are functions will be called during synthesis and the result will be serialized - this allow to have lazy values.
        • Set will be converted to array
        • Map will be converted to a plain object ({ key: value, ... }})
        • RegExp without flags will be converted to string representation of the source
        Returns:
        this
      • committed

        @Stability(Experimental)
        public XmlFileOptions.Builder committed​(Boolean committed)
        Parameters:
        committed - Indicates whether this file should be committed to git or ignored. By default, all generated files are committed and anti-tamper is used to protect against manual modifications.
        Returns:
        this