com.bea.p13n.license
Class LicensedComponent

java.lang.Object
  extended by com.bea.p13n.license.LicensedComponent

public abstract class LicensedComponent
extends Object

Represents a licensed component of a product. Encapsulation of Product Name, Release, and Component Name.


Constructor Summary
protected LicensedComponent(String theComponentName)
          Must be subclassed to be useful
protected LicensedComponent(String theProduct, String theRelease, String theComponentName)
          for backwards compatibility
 
Method Summary
 boolean equals(Object o)
           
 String getComponentName()
          Get the core component name of the product
 String getProductName()
          Get the name of the Product
 String getRelease()
          Get the release (number) of the product
 int hashCode()
           
 String toString()
          Return a string representation of the Product.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LicensedComponent

protected LicensedComponent(String theProduct,
                            String theRelease,
                            String theComponentName)
for backwards compatibility


LicensedComponent

protected LicensedComponent(String theComponentName)
Must be subclassed to be useful

Method Detail

getProductName

public final String getProductName()
Get the name of the Product


getRelease

public final String getRelease()
Get the release (number) of the product


getComponentName

public final String getComponentName()
Get the core component name of the product


toString

public final String toString()
Return a string representation of the Product.
   productName:componentName:release
 

Overrides:
toString in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2006 BEA Systems, Inc. All Rights Reserved