version

From Documentation
Revision as of 05:16, 19 November 2010 by Tomyeh (talk | contribs) (Created page with '{{ZKDevelopersReferencePageHeader}} '''Syntax:''' <version> <version-class>''a_class''</version-class> <version-uuid>''a_version''</version-uuid> <zk-version>''a_ve…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

<version>
   <version-class>a_class</version-class>
   <version-uuid>a_version</version-uuid>
   <zk-version>a_version</zk-version>
</version>

It specifies the version of this language definition or addon. It also controls whether to ignore this document. It is optional.

First, ZK checks if the specified class (<version-calss>) matches the version (<version-uuid>). Second, it checks if ZK's version is the same or larger than the version specified in <zk-version>.

The specified class, if any, must have a static field called UUID. ZK will compare its value with the version specified in <version-uuid>.

Example,

<version>
	<version-class>org.zkoss.zkmax.Version</version-class>
	<version-uid>5.0.5</version-uid>
	<zk-version>5.0.0</zk-version>
</version>

which means Version.UUID must be 5.0.5, and WebApp.getVersion() must be 5.0.0 or later.

Version History

Last Update : 2010/11/19


Version Date Content
     



Last Update : 2010/11/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.