com.jfimagine.jfgraph.shape.base
Class JFVersion

java.lang.Object
  |
  +--com.jfimagine.jfgraph.shape.base.JFVersion

public class JFVersion
extends java.lang.Object

JFVersion class is used to define and manage file verions.

Version:
$Revision: 1.1 $
Author:
CookieMaker

Field Summary
static java.lang.String PRODUCER
          producer of this page
static int VERSIONID_100
          id of version 1.0.0
static int VERSIONID_110
          id of version 1.1.0
static int VERSIONID_111
          id of version 1.1.1
static int VERSIONID_141
          id of version 1.4.1
static int VERSIONID_160
          id of version 1.6.0
static java.lang.String XML_AUTHOR
          A XML string tag represents a author
static java.lang.String XML_PRODUCER
          A XML string tag represents a producer
static java.lang.String XML_VERSION
          A XML string tag represents a version
 
Constructor Summary
JFVersion()
          constructor
JFVersion(java.lang.String version)
          constructor
 
Method Summary
static java.lang.String getCurrentVersion()
          get current version string
 java.lang.String getVersion()
          get version that assigned before
static java.lang.String getVersion(int versionId)
          get version string by id
 int getVersionId()
          get version id that assigned before
static int getVersionId(java.lang.String version)
          get version id by version string
 boolean lowerVersionOf(int versionId)
          if current version less than specified version id
 void setValue(JFVersion version)
          Set new value for this version object.
 void setVersion(java.lang.String version)
          assign a new version string
 void setVersionId(int versionId)
          assign a new version id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_VERSION

public static final java.lang.String XML_VERSION
A XML string tag represents a version

See Also:
Constant Field Values

XML_PRODUCER

public static final java.lang.String XML_PRODUCER
A XML string tag represents a producer

See Also:
Constant Field Values

XML_AUTHOR

public static final java.lang.String XML_AUTHOR
A XML string tag represents a author

See Also:
Constant Field Values

PRODUCER

public static final java.lang.String PRODUCER
producer of this page

See Also:
Constant Field Values

VERSIONID_100

public static final int VERSIONID_100
id of version 1.0.0

See Also:
Constant Field Values

VERSIONID_110

public static final int VERSIONID_110
id of version 1.1.0

See Also:
Constant Field Values

VERSIONID_111

public static final int VERSIONID_111
id of version 1.1.1

See Also:
Constant Field Values

VERSIONID_141

public static final int VERSIONID_141
id of version 1.4.1

See Also:
Constant Field Values

VERSIONID_160

public static final int VERSIONID_160
id of version 1.6.0

See Also:
Constant Field Values
Constructor Detail

JFVersion

public JFVersion()
constructor


JFVersion

public JFVersion(java.lang.String version)
constructor

Method Detail

getVersion

public static java.lang.String getVersion(int versionId)
get version string by id


getVersionId

public static int getVersionId(java.lang.String version)
get version id by version string


getCurrentVersion

public static java.lang.String getCurrentVersion()
get current version string


getVersion

public java.lang.String getVersion()
get version that assigned before


setVersion

public void setVersion(java.lang.String version)
assign a new version string


getVersionId

public int getVersionId()
get version id that assigned before


setVersionId

public void setVersionId(int versionId)
assign a new version id


lowerVersionOf

public boolean lowerVersionOf(int versionId)
if current version less than specified version id


setValue

public void setValue(JFVersion version)
Set new value for this version object.

Parameters:
version - A new version object.


Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All Rights Reserved.