org.netbeans.modules.websvc.serverapi/0 1.0

org.netbeans.modules.websvc.wsstack.api
Class WSStackVersion

java.lang.Object
  extended by org.netbeans.modules.websvc.wsstack.api.WSStackVersion

public final class WSStackVersion
extends Object

Provides WS Stack Version information. This is not expected to be instantiated by client - usually taken from WSStack:getVersion();


Constructor Summary
WSStackVersion(String version)
          Constructor for WSStackVersion.
 
Method Summary
 BigDecimal getMajor()
          Major version of WS Stack.
 BigDecimal getMinor()
          Minor version of WS Stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSStackVersion

public WSStackVersion(String version)
Constructor for WSStackVersion. The version parameter is usually the implementation version of WS Stack, e.g. "1.2.3". The constructor should only be used by SPI provider.

Parameters:
version - string taken from WSStack jar files or MANIFEST.MF file
Method Detail

getMajor

public BigDecimal getMajor()
Major version of WS Stack. Usually specification version or the leading 2 parts of implementation version, e.g. "1.2"

Returns:
major version

getMinor

public BigDecimal getMinor()
Minor version of WS Stack. Usually last part of implementation version - it means third (and possibly fourth) part of implementation version

Returns:
minor version

org.netbeans.modules.websvc.serverapi/0 1.0

Built on June 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.