Class Attachment

    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The value of the name attribute
      • getMimeType

        public org.springframework.util.MimeType getMimeType()
        Returns:
        The value of the mimeType attribute
      • getContent

        public byte[] getContent()
        Returns:
        The value of the content attribute
      • getCharset

        public java.util.Optional<java.nio.charset.Charset> getCharset()
        Returns:
        The value of the charset attribute
      • equals

        @Pure
        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        @Pure
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • build

        public static Attachment build​(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Attachment.Builder> init)
        Creates an immutable instance of Attachment. The values can be initialized by using the init parameter.
        Parameters:
        init - The initializer
        Returns:
        An immutable Attachment instance
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing
      • copy

        public Attachment copy​(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Attachment.Builder> init)
        Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.
        Parameters:
        init - The initializer
        Returns:
        A copied immutable Attachment instance