public class Version
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 |
long |
date |
int |
version |
Constructor and Description |
---|
Version() |
Version(Version o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Version.
|
static Version |
fromString(java.lang.String s)
String representation of this Version.
|
java.lang.String |
getAuthor()
User who applied this version
|
java.lang.String |
getComment()
The description of the content of this version.
|
long |
getDate()
Date of the application of this version (ms since epoch).
|
int |
getVersion()
Version number.
|
Version |
makeCopy()
Creates and returns a deep copy of this Version.
|
static Version |
readFrom(java.io.InputStream is)
Read this Version from an XML fragment.
|
void |
setAuthor(java.lang.String author)
User who applied this version
|
void |
setComment(java.lang.String comment)
The description of the content of this version.
|
void |
setDate(long date)
Date of the application of this version (ms since epoch).
|
void |
setVersion(int version)
Version number.
|
java.lang.String |
toString()
String representation of this Version.
|
Version |
withAuthor(java.lang.String author) |
Version |
withComment(java.lang.String comment) |
Version |
withDate(long date) |
Version |
withDate(java.lang.Long date) |
Version |
withVersion(int version) |
Version |
withVersion(java.lang.Integer version) |
void |
writeTo(java.io.OutputStream os)
Write this Version as an XML fragment
|
public int version
public java.lang.String comment
public long date
public java.lang.String author
public Version()
public Version(Version o)
public void setVersion(int version)
public int getVersion()
public Version withVersion(int version)
public Version withVersion(java.lang.Integer version)
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public Version withComment(java.lang.String comment)
public void setDate(long date)
public long getDate()
public Version withDate(long date)
public Version withDate(java.lang.Long date)
public void setAuthor(java.lang.String author)
public java.lang.String getAuthor()
public Version withAuthor(java.lang.String author)
public Version makeCopy()
public static Version 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 Version 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.