public class Part
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Part.CustomDirectives |
Modifier and Type | Field and Description |
---|---|
protected Part.CustomDirectives |
customDirectives |
java.lang.String |
encoding |
java.lang.String |
filename |
java.lang.String |
forcedMime |
java.lang.String |
mimeHint |
java.lang.String |
name |
UByteArrayValue |
uByteArrayValue |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Part.
|
static Part |
fromString(java.lang.String s)
String representation of this Part.
|
Part.CustomDirectives |
getCustomDirectives() |
java.lang.String |
getEncoding()
Part encoding.
|
java.lang.String |
getFilename()
Part filename.
|
java.lang.String |
getForcedMime()
Force MIME type.
|
java.lang.String |
getMimeHint()
Part MIME hint.
|
java.lang.String |
getName()
Part name.
|
UByteArrayValue |
getUByteArrayValue()
The content as an UBYteArray.
|
Part |
makeCopy()
Creates and returns a deep copy of this Part.
|
static Part |
readFrom(java.io.InputStream is)
Read this Part from an XML fragment.
|
void |
setCustomDirectives(Part.CustomDirectives __value) |
void |
setEncoding(java.lang.String encoding)
Part encoding.
|
void |
setFilename(java.lang.String filename)
Part filename.
|
void |
setForcedMime(java.lang.String forcedMime)
Force MIME type.
|
void |
setMimeHint(java.lang.String mimeHint)
Part MIME hint.
|
void |
setName(java.lang.String name)
Part name.
|
void |
setUByteArrayValue(UByteArrayValue uByteArrayValue)
The content as an UBYteArray.
|
java.lang.String |
toString()
String representation of this Part.
|
Part |
withCustomDirectives(java.util.Collection<KeyValue> __values) |
Part |
withCustomDirectives(KeyValue... __values) |
Part |
withCustomDirectives(Part.CustomDirectives __value) |
Part |
withEncoding(java.lang.String encoding) |
Part |
withFilename(java.lang.String filename) |
Part |
withForcedMime(java.lang.String forcedMime) |
Part |
withMimeHint(java.lang.String mimeHint) |
Part |
withName(java.lang.String name) |
Part |
withUByteArrayValue(UByteArrayValue uByteArrayValue) |
void |
writeTo(java.io.OutputStream os)
Write this Part as an XML fragment
|
public UByteArrayValue uByteArrayValue
public java.lang.String name
public java.lang.String encoding
public java.lang.String filename
public java.lang.String mimeHint
public java.lang.String forcedMime
protected Part.CustomDirectives customDirectives
public Part()
public Part(Part o)
public void setUByteArrayValue(UByteArrayValue uByteArrayValue)
public UByteArrayValue getUByteArrayValue()
public Part withUByteArrayValue(UByteArrayValue uByteArrayValue)
public void setName(java.lang.String name)
public java.lang.String getName()
public Part withName(java.lang.String name)
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public Part withEncoding(java.lang.String encoding)
public void setFilename(java.lang.String filename)
public java.lang.String getFilename()
public Part withFilename(java.lang.String filename)
public void setMimeHint(java.lang.String mimeHint)
public java.lang.String getMimeHint()
public Part withMimeHint(java.lang.String mimeHint)
public void setForcedMime(java.lang.String forcedMime)
public java.lang.String getForcedMime()
public Part withForcedMime(java.lang.String forcedMime)
public Part.CustomDirectives getCustomDirectives()
public void setCustomDirectives(Part.CustomDirectives __value)
public Part withCustomDirectives(Part.CustomDirectives __value)
public Part makeCopy()
public static Part readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Part fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.