Class File

  • All Implemented Interfaces:
    Serializable

    public class File
    extends Object
    implements Serializable

    Java class for file complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="file">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="mimetype" type="{http://www.w3.org/2001/XMLSchema}string"/>
             <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string"/>
             <choice>
               <element name="textContent" type="{http://www.w3.org/2001/XMLSchema}string"/>
               <element name="binaryContent" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
             </choice>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Detail

      • mimetype

        protected String mimetype
      • filename

        protected String filename
      • textContent

        protected String textContent
      • binaryContent

        protected javax.activation.DataHandler binaryContent
    • Constructor Detail

      • File

        public File()
        Default no-arg constructor
      • File

        public File​(String mimetype,
                    String filename,
                    String textContent,
                    javax.activation.DataHandler binaryContent)
        Fully-initialising value constructor
      • File

        public File​(javax.activation.DataSource dataSource)
    • Method Detail

      • getMimetype

        public String getMimetype()
        Gets the value of the mimetype property.
        Returns:
        possible object is String
      • setMimetype

        public void setMimetype​(String value)
        Sets the value of the mimetype property.
        Parameters:
        value - allowed object is String
      • getFilename

        public String getFilename()
        Gets the value of the filename property.
        Returns:
        possible object is String
      • setFilename

        public void setFilename​(String value)
        Sets the value of the filename property.
        Parameters:
        value - allowed object is String
      • getTextContent

        public String getTextContent()
        Gets the value of the textContent property.
        Returns:
        possible object is String
      • setTextContent

        public void setTextContent​(String value)
        Sets the value of the textContent property.
        Parameters:
        value - allowed object is String
      • getBinaryContent

        public javax.activation.DataHandler getBinaryContent()
        Gets the value of the binaryContent property.
        Returns:
        possible object is DataHandler
      • setBinaryContent

        public void setBinaryContent​(javax.activation.DataHandler value)
        Sets the value of the binaryContent property.
        Parameters:
        value - allowed object is DataHandler
      • withMimetype

        public File withMimetype​(String value)
      • withFilename

        public File withFilename​(String value)
      • withTextContent

        public File withTextContent​(String value)
      • withBinaryContent

        public File withBinaryContent​(javax.activation.DataHandler value)