public class ResourceVersion
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 |
compiledAt |
java.lang.String |
format |
int |
version |
Constructor and Description |
---|
ResourceVersion() |
ResourceVersion(ResourceVersion o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ResourceVersion.
|
static ResourceVersion |
fromString(java.lang.String s)
String representation of this ResourceVersion.
|
java.lang.String |
getAuthor()
Author of this particular resource
|
java.lang.String |
getComment()
Optional comment
|
long |
getCompiledAt()
Compilation time of this resource instance (obtained through System.currentTimeMillis)
|
java.lang.String |
getFormat()
Original format of the resource (as used during upload)
|
int |
getVersion()
Resource's version
|
ResourceVersion |
makeCopy()
Creates and returns a deep copy of this ResourceVersion.
|
static ResourceVersion |
readFrom(java.io.InputStream is)
Read this ResourceVersion from an XML fragment.
|
void |
setAuthor(java.lang.String author)
Author of this particular resource
|
void |
setComment(java.lang.String comment)
Optional comment
|
void |
setCompiledAt(long compiledAt)
Compilation time of this resource instance (obtained through System.currentTimeMillis)
|
void |
setFormat(java.lang.String format)
Original format of the resource (as used during upload)
|
void |
setVersion(int version)
Resource's version
|
java.lang.String |
toString()
String representation of this ResourceVersion.
|
ResourceVersion |
withAuthor(java.lang.String author) |
ResourceVersion |
withComment(java.lang.String comment) |
ResourceVersion |
withCompiledAt(long compiledAt) |
ResourceVersion |
withCompiledAt(java.lang.Long compiledAt) |
ResourceVersion |
withFormat(java.lang.String format) |
ResourceVersion |
withVersion(int version) |
ResourceVersion |
withVersion(java.lang.Integer version) |
void |
writeTo(java.io.OutputStream os)
Write this ResourceVersion as an XML fragment
|
public int version
public java.lang.String format
public java.lang.String author
public java.lang.String comment
public long compiledAt
public ResourceVersion()
public ResourceVersion(ResourceVersion o)
public void setVersion(int version)
public int getVersion()
public ResourceVersion withVersion(int version)
public ResourceVersion withVersion(java.lang.Integer version)
public void setFormat(java.lang.String format)
public java.lang.String getFormat()
public ResourceVersion withFormat(java.lang.String format)
public void setAuthor(java.lang.String author)
public java.lang.String getAuthor()
public ResourceVersion withAuthor(java.lang.String author)
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public ResourceVersion withComment(java.lang.String comment)
public void setCompiledAt(long compiledAt)
public long getCompiledAt()
public ResourceVersion withCompiledAt(long compiledAt)
public ResourceVersion withCompiledAt(java.lang.Long compiledAt)
public ResourceVersion makeCopy()
public static ResourceVersion 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 ResourceVersion 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.