public class DownloadResource extends FormatType implements com.exalead.util.Checkable, java.io.Serializable
FormatType.Format
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_VERSION |
java.lang.String |
name |
int |
version |
format
Constructor and Description |
---|
DownloadResource() |
DownloadResource(DownloadResource o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this DownloadResource.
|
static DownloadResource |
fromString(java.lang.String s)
String representation of this DownloadResource.
|
java.lang.String |
getName()
Name of the resource to download
|
int |
getVersion()
Version of the resource to download, or -1 to download the latest version.
|
DownloadResource |
makeCopy()
Creates and returns a deep copy of this DownloadResource.
|
static DownloadResource |
readFrom(java.io.InputStream is)
Read this DownloadResource from an XML fragment.
|
void |
setName(java.lang.String name)
Name of the resource to download
|
void |
setVersion(int version)
Version of the resource to download, or -1 to download the latest version.
|
java.lang.String |
toString()
String representation of this DownloadResource.
|
DownloadResource |
withFormat(java.lang.String format) |
DownloadResource |
withName(java.lang.String name) |
DownloadResource |
withVersion(int version) |
DownloadResource |
withVersion(java.lang.Integer version) |
void |
writeTo(java.io.OutputStream os)
Write this DownloadResource as an XML fragment
|
getFormat, getFormatAsEnum, isA, isOneOf, setFormat, setFormat
public java.lang.String name
public int version
public static final int DEFAULT_VERSION
public DownloadResource()
public DownloadResource(DownloadResource o)
public DownloadResource withFormat(java.lang.String format)
withFormat
in class FormatType
public void setName(java.lang.String name)
public java.lang.String getName()
public DownloadResource withName(java.lang.String name)
public void setVersion(int version)
public int getVersion()
public DownloadResource withVersion(int version)
public DownloadResource withVersion(java.lang.Integer version)
public DownloadResource makeCopy()
makeCopy
in class FormatType
public static DownloadResource 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
writeTo
in class FormatType
javax.xml.bind.JAXBException
java.io.IOException
public static DownloadResource 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 FormatType
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class FormatType
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.