public abstract class Upload extends FormatType implements com.exalead.util.Checkable, java.io.Serializable
FormatType.Format
Modifier and Type | Field and Description |
---|---|
java.lang.String |
author |
static int |
DEFAULT_MAX_GEN_KEPT |
static boolean |
DEFAULT_PUBLISH |
static boolean |
DEFAULT_UPDATE |
java.lang.String |
description |
int |
maxGenKept |
java.lang.String |
name |
boolean |
publish |
boolean |
update |
format
Constructor and Description |
---|
Upload() |
Upload(Upload o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Upload.
|
static Upload |
fromString(java.lang.String s)
String representation of this Upload.
|
java.lang.String |
getAuthor() |
java.lang.String |
getDescription() |
int |
getMaxGenKept()
Maximum number of generation kept for this resource.
|
java.lang.String |
getName() |
boolean |
isPublish() |
boolean |
isUpdate() |
Upload |
makeCopy() |
static Upload |
readFrom(java.io.InputStream is)
Read this Upload from an XML fragment.
|
void |
setAuthor(java.lang.String author) |
void |
setDescription(java.lang.String description) |
void |
setMaxGenKept(int maxGenKept)
Maximum number of generation kept for this resource.
|
void |
setName(java.lang.String name) |
void |
setPublish(boolean publish) |
void |
setUpdate(boolean update) |
java.lang.String |
toString()
String representation of this Upload.
|
Upload |
withAuthor(java.lang.String author) |
Upload |
withDescription(java.lang.String description) |
Upload |
withFormat(java.lang.String format) |
Upload |
withMaxGenKept(int maxGenKept) |
Upload |
withMaxGenKept(java.lang.Integer maxGenKept) |
Upload |
withName(java.lang.String name) |
Upload |
withPublish(boolean publish) |
Upload |
withPublish(java.lang.Boolean publish) |
Upload |
withUpdate(boolean update) |
Upload |
withUpdate(java.lang.Boolean update) |
void |
writeTo(java.io.OutputStream os) |
getFormat, getFormatAsEnum, isA, isOneOf, setFormat, setFormat
public java.lang.String name
public java.lang.String author
public java.lang.String description
public boolean publish
public static final boolean DEFAULT_PUBLISH
public boolean update
public static final boolean DEFAULT_UPDATE
public int maxGenKept
public static final int DEFAULT_MAX_GEN_KEPT
public Upload()
public Upload(Upload o)
public Upload withFormat(java.lang.String format)
withFormat
in class FormatType
public void setName(java.lang.String name)
public java.lang.String getName()
public Upload withName(java.lang.String name)
public void setAuthor(java.lang.String author)
public java.lang.String getAuthor()
public Upload withAuthor(java.lang.String author)
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public Upload withDescription(java.lang.String description)
public void setPublish(boolean publish)
public boolean isPublish()
public Upload withPublish(boolean publish)
public Upload withPublish(java.lang.Boolean publish)
public void setUpdate(boolean update)
public boolean isUpdate()
public Upload withUpdate(boolean update)
public Upload withUpdate(java.lang.Boolean update)
public void setMaxGenKept(int maxGenKept)
public int getMaxGenKept()
public Upload withMaxGenKept(int maxGenKept)
public Upload withMaxGenKept(java.lang.Integer maxGenKept)
public Upload makeCopy()
makeCopy
in class FormatType
public static Upload 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 Upload 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.