Style Intelligence v12.0

inetsoft.sree.store
Class VersionInfo

java.lang.Object
  extended by inetsoft.sree.store.VersionInfo
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Cloneable

public class VersionInfo
extends Object
implements inetsoft.util.XMLSerializable, Cloneable

File version information.


Constructor Summary
VersionInfo()
          Create a version info.
VersionInfo(String ver)
          Create a version info.
VersionInfo(String version, Date creation, String type, String comment)
          Create a version info.
 
Method Summary
 Object clone()
          Clone the version info.
 boolean equals(Object obj)
          Check if equals another object.
 String getComment()
          Get the comment of the version info.
 Date getCreationDate()
          Get the creation date of the version info.
 long getFileSize()
          Gets the size of the archived file.
 int getHtmlType()
          Get htmlType.
 String getType()
          Get the file type of the version info, which should be one of the constants predefined in ReportData like PDF, XLS, etc.
 String getVersion()
          Get the version of the version info.
 int hashCode()
          Get the hash code of the version info.
 boolean isCompressed()
          Determines if the file is compressed in storage.
 void parseXML(Element tag)
          Parse XML segment.
 void setComment(String comment)
          Set the comment of the version info.
 void setCompressed(boolean compressed)
          Sets whether the file will be compressed in storage.
 void setCreationDate(Date date)
          Set the creation date of the version info.
 void setFileSize(long fileSize)
          Sets the size of the archived file.
 void setHtmlType(int htmlType)
          Set htmlType.
 void setType(String type)
          Set the file type of the version info, which should be one of the constants predefined in ReportData like PDF, XLS, etc.
 void setVersion(String version)
          Set the version of the version info.
 String toString()
          Get the string representation.
 void writeXML(PrintWriter writer)
          Write XML segment.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionInfo

public VersionInfo()
Create a version info.


VersionInfo

public VersionInfo(String ver)
Create a version info.

Parameters:
ver - the specified version.

VersionInfo

public VersionInfo(String version,
                   Date creation,
                   String type,
                   String comment)
Create a version info.

Parameters:
version - the specified version.
creation - the specified creation date.
type - the specified file type.
comment - the specified comment.
Method Detail

getVersion

public String getVersion()
Get the version of the version info.

Returns:
the version of the version info.

setVersion

public void setVersion(String version)
Set the version of the version info.

Parameters:
version - the specified version.

getCreationDate

public Date getCreationDate()
Get the creation date of the version info.

Returns:
the creation date of the version info.

setCreationDate

public void setCreationDate(Date date)
Set the creation date of the version info.

Parameters:
date - the specified creation date.

getType

public String getType()
Get the file type of the version info, which should be one of the constants predefined in ReportData like PDF, XLS, etc.

Returns:
the file type of the version info.

setType

public void setType(String type)
Set the file type of the version info, which should be one of the constants predefined in ReportData like PDF, XLS, etc.

Parameters:
type - the specified file type.

getComment

public String getComment()
Get the comment of the version info.

Returns:
the comment of the version info.

setComment

public void setComment(String comment)
Set the comment of the version info.

Parameters:
comment - the specified comment.

isCompressed

public boolean isCompressed()
Determines if the file is compressed in storage.

Returns:
true if the archived file is compressed; false otherwise.
Since:
7.0

setCompressed

public void setCompressed(boolean compressed)
Sets whether the file will be compressed in storage.

Parameters:
compressed - true if the archived file is compressed; false otherwise.
Since:
7.0

getFileSize

public long getFileSize()
Gets the size of the archived file.

Returns:
the size of the file in bytes.
Since:
7.0

setFileSize

public void setFileSize(long fileSize)
Sets the size of the archived file.

Parameters:
fileSize - the size of the file in bytes.
Since:
7.0

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if equals another object, false otherwise.

hashCode

public int hashCode()
Get the hash code of the version info.

Overrides:
hashCode in class Object
Returns:
the hash code of the version info.

parseXML

public void parseXML(Element tag)
              throws Exception
Parse XML segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

writeXML

public void writeXML(PrintWriter writer)
Write XML segment.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

clone

public Object clone()
Clone the version info.

Overrides:
clone in class Object

setHtmlType

public void setHtmlType(int htmlType)
Set htmlType.


getHtmlType

public int getHtmlType()
Get htmlType.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.