com.saxonica.validate
Class PlatformVerifier

java.lang.Object
  extended by com.saxonica.validate.PlatformVerifier
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JavaVerifier

public abstract class PlatformVerifier
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.Properties features
           
 
Constructor Summary
PlatformVerifier()
           
 
Method Summary
protected  int daysLeft()
          It returns how many days are left for the license.
 void displayLicenseMessage()
          Display a message about the license status
 java.lang.String getFeature(java.lang.String name)
          This method is called to get the feature of the license.
abstract  void loadLicense()
          Load the license file
abstract  void supplyLicenseKey(java.io.BufferedReader reader)
          This method allows the contents of a license key to be supplied programmatically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

protected java.util.Properties features
Constructor Detail

PlatformVerifier

public PlatformVerifier()
Method Detail

loadLicense

public abstract void loadLicense()
Load the license file

Throws:
java.lang.RuntimeException - if the license cannot be located and read

supplyLicenseKey

public abstract void supplyLicenseKey(java.io.BufferedReader reader)
This method allows the contents of a license key to be supplied programmatically. This must be a license file as issued to authorized OEM distributors of Saxon-SA.

Parameters:
reader - A reader that will be used to read the contents of the license file (for example, a StringReader)
Throws:
java.lang.IllegalArgumentException - if the key supplied is not a valid OEM license key

daysLeft

protected int daysLeft()
It returns how many days are left for the license. The value 0 is valid, it may indicate a never expire license.

Returns:
how many days are left for the license.

getFeature

public java.lang.String getFeature(java.lang.String name)
This method is called to get the feature of the license.

Parameters:
name - the name of the required feature
Returns:
the feature value of the license.

displayLicenseMessage

public void displayLicenseMessage()
Display a message about the license status



Copyright (c) Saxonica Limited. All rights reserved.