Class File
- java.lang.Object
-
- com.iknowbase.api.contentservices.v2.model.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 Summary
Fields Modifier and Type Field Description protected javax.activation.DataHandler
binaryContent
protected String
filename
protected String
mimetype
protected String
textContent
-
Constructor Summary
Constructors Constructor Description File()
Default no-arg constructorFile(InputStream binaryData, String filename, String mimetype)
File(String mimetype, String filename, String textContent, javax.activation.DataHandler binaryContent)
Fully-initialising value constructorFile(javax.activation.DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.activation.DataHandler
getBinaryContent()
Gets the value of the binaryContent property.String
getFilename()
Gets the value of the filename property.String
getMimetype()
Gets the value of the mimetype property.String
getTextContent()
Gets the value of the textContent property.void
setBinaryContent(javax.activation.DataHandler value)
Sets the value of the binaryContent property.void
setFilename(String value)
Sets the value of the filename property.void
setMimetype(String value)
Sets the value of the mimetype property.void
setTextContent(String value)
Sets the value of the textContent property.File
withBinaryContent(javax.activation.DataHandler value)
File
withFilename(String value)
File
withMimetype(String value)
File
withTextContent(String value)
-
-
-
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)
-
File
public File(InputStream binaryData, String filename, String mimetype)
-
-
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 isString
-
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 isString
-
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 isString
-
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 isDataHandler
-
withBinaryContent
public File withBinaryContent(javax.activation.DataHandler value)
-
-