public class PreparedVersion
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
author |
java.lang.String |
comment |
static int |
DEFAULT_MAX_GEN_KEPT |
int |
maxGenKept |
java.lang.String |
name |
java.lang.String |
path |
Constructor and Description |
---|
PreparedVersion() |
PreparedVersion(PreparedVersion o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PreparedVersion.
|
static PreparedVersion |
fromString(java.lang.String s)
String representation of this PreparedVersion.
|
java.lang.String |
getAuthor()
Author of this resource
|
java.lang.String |
getComment()
Comment attached to this version of the resource.
|
int |
getMaxGenKept()
Maximum number of generation kept for this resource.
|
java.lang.String |
getName()
Name of the resource
|
java.lang.String |
getPath()
The path to new version
|
PreparedVersion |
makeCopy()
Creates and returns a deep copy of this PreparedVersion.
|
static PreparedVersion |
readFrom(java.io.InputStream is)
Read this PreparedVersion from an XML fragment.
|
void |
setAuthor(java.lang.String author)
Author of this resource
|
void |
setComment(java.lang.String comment)
Comment attached to this version of the resource.
|
void |
setMaxGenKept(int maxGenKept)
Maximum number of generation kept for this resource.
|
void |
setName(java.lang.String name)
Name of the resource
|
void |
setPath(java.lang.String path)
The path to new version
|
java.lang.String |
toString()
String representation of this PreparedVersion.
|
PreparedVersion |
withAuthor(java.lang.String author) |
PreparedVersion |
withComment(java.lang.String comment) |
PreparedVersion |
withMaxGenKept(int maxGenKept) |
PreparedVersion |
withMaxGenKept(java.lang.Integer maxGenKept) |
PreparedVersion |
withName(java.lang.String name) |
PreparedVersion |
withPath(java.lang.String path) |
void |
writeTo(java.io.OutputStream os)
Write this PreparedVersion as an XML fragment
|
public java.lang.String path
public java.lang.String name
public java.lang.String author
public java.lang.String comment
public int maxGenKept
public static final int DEFAULT_MAX_GEN_KEPT
public PreparedVersion()
public PreparedVersion(PreparedVersion o)
public void setPath(java.lang.String path)
public java.lang.String getPath()
public PreparedVersion withPath(java.lang.String path)
public void setName(java.lang.String name)
public java.lang.String getName()
public PreparedVersion withName(java.lang.String name)
public void setAuthor(java.lang.String author)
public java.lang.String getAuthor()
public PreparedVersion withAuthor(java.lang.String author)
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public PreparedVersion withComment(java.lang.String comment)
public void setMaxGenKept(int maxGenKept)
public int getMaxGenKept()
public PreparedVersion withMaxGenKept(int maxGenKept)
public PreparedVersion withMaxGenKept(java.lang.Integer maxGenKept)
public PreparedVersion makeCopy()
public static PreparedVersion 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 PreparedVersion 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.