Class XmlFile

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:42.817Z")
    @Stability(Experimental)
    public class XmlFile
    extends ObjectFile
    (experimental) Represents an XML file.

    Objects passed in will be synthesized using the npm "xml" library.

    See Also:
    https://www.npmjs.com/package/xml
    • Constructor Detail

      • XmlFile

        protected XmlFile​(software.amazon.jsii.JsiiObjectRef objRef)
      • XmlFile

        protected XmlFile​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • XmlFile

        @Stability(Experimental)
        public XmlFile​(@NotNull
                       Project project,
                       @NotNull
                       String filePath,
                       @Nullable
                       XmlFileOptions options)
        Parameters:
        project - This parameter is required.
        filePath - This parameter is required.
        options -
      • XmlFile

        @Stability(Experimental)
        public XmlFile​(@NotNull
                       Project project,
                       @NotNull
                       String filePath)
        Parameters:
        project - This parameter is required.
        filePath - This parameter is required.
    • Method Detail

      • synthesizeContent

        @Stability(Experimental)
        @Nullable
        protected String synthesizeContent​(@NotNull
                                           IResolver resolver)
        (experimental) Implemented by derived classes and returns the contents of the file to emit.

        Overrides:
        synthesizeContent in class ObjectFile
        Parameters:
        resolver - This parameter is required.
        Returns:
        the content to synthesize or undefined to skip the file