public static class ContentType.File
extends java.lang.Object
implements java.io.Serializable
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string"/> <choice minOccurs="0"> <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>
Modifier and Type | Field and Description |
---|---|
protected javax.activation.DataHandler |
binaryContent |
protected java.lang.String |
filename |
protected java.lang.String |
textContent |
Constructor and Description |
---|
File()
Default no-arg constructor
|
File(java.lang.String filename,
java.lang.String textContent,
javax.activation.DataHandler binaryContent)
Fully-initialising value constructor
|
Modifier and Type | Method and Description |
---|---|
javax.activation.DataHandler |
getBinaryContent()
Gets the value of the binaryContent property.
|
java.lang.String |
getFilename()
Gets the value of the filename property.
|
java.lang.String |
getTextContent()
Gets the value of the textContent property.
|
void |
setBinaryContent(javax.activation.DataHandler value)
Sets the value of the binaryContent property.
|
void |
setFilename(java.lang.String value)
Sets the value of the filename property.
|
void |
setTextContent(java.lang.String value)
Sets the value of the textContent property.
|
ContentType.File |
withBinaryContent(javax.activation.DataHandler value) |
ContentType.File |
withFilename(java.lang.String value) |
ContentType.File |
withTextContent(java.lang.String value) |
protected java.lang.String filename
protected java.lang.String textContent
protected javax.activation.DataHandler binaryContent
public File()
public File(java.lang.String filename, java.lang.String textContent, javax.activation.DataHandler binaryContent)
public java.lang.String getFilename()
String
public void setFilename(java.lang.String value)
value
- allowed object is
String
public java.lang.String getTextContent()
String
public void setTextContent(java.lang.String value)
value
- allowed object is
String
public javax.activation.DataHandler getBinaryContent()
DataHandler
public void setBinaryContent(javax.activation.DataHandler value)
value
- allowed object is
DataHandler
public ContentType.File withFilename(java.lang.String value)
public ContentType.File withTextContent(java.lang.String value)
public ContentType.File withBinaryContent(javax.activation.DataHandler value)
Copyright © Acando AS. All Rights Reserved.