com.smardec.license4j
Class License

java.lang.Object
  |
  +--com.smardec.license4j.License

public final class License
extends java.lang.Object

Represents the license. It supports any number of features and their values (like Hashtable).


Constructor Summary
License()
          Creates License.
 
Method Summary
 void addFeature(java.lang.String name, java.lang.String value)
          Adds feature to the license.
 java.lang.String getFeature(java.lang.String name)
          Returns feature's value with the specified feature's name.
 java.util.List getFeatureList()
          Returns list of features in their right order.
 java.lang.String removeFeature(java.lang.String name)
          Removes feature with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

License

public License()
Creates License.

Method Detail

getFeature

public java.lang.String getFeature(java.lang.String name)
Returns feature's value with the specified feature's name.

Parameters:
name - name of the feature
Returns:
value of the feature or null if there is no feature with specified name

addFeature

public void addFeature(java.lang.String name,
                       java.lang.String value)
Adds feature to the license.

Parameters:
name - name of the feature
value - value of the feature

removeFeature

public java.lang.String removeFeature(java.lang.String name)
Removes feature with the specified name.

Parameters:
name - name of the feature
Returns:
value of the feature

getFeatureList

public java.util.List getFeatureList()
Returns list of features in their right order.

Returns:
list of features


Copyright © 2003-2004 Smardec. All Rights Reserved.