© 2002 BEA Systems, Inc.


com.bea.p13n.license
Class LicensedComponent

java.lang.Object
  |
  +--com.bea.p13n.license.LicensedComponent

public abstract class LicensedComponent
extends java.lang.Object

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


Constructor Summary
protected LicensedComponent(java.lang.String theComponentName)
          Must be subclassed to be useful
protected LicensedComponent(java.lang.String theProduct, java.lang.String theRelease, java.lang.String theComponentName)
          for backwards compatibility
 
Method Summary
 boolean equals(java.lang.Object anObject)
           
 java.lang.String getComponentName()
          Get the core component name of the product
 java.lang.String getProductName()
          Get the name of the Product
 java.lang.String getRelease()
          Get the release (number) of the product
 int hashCode()
           
 java.lang.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(java.lang.String theProduct,
                            java.lang.String theRelease,
                            java.lang.String theComponentName)
for backwards compatibility

LicensedComponent

protected LicensedComponent(java.lang.String theComponentName)
Must be subclassed to be useful
Method Detail

getProductName

public final java.lang.String getProductName()
Get the name of the Product

getRelease

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

getComponentName

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

toString

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

Overrides:
toString in class java.lang.Object

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object anObject)

Overrides:
equals in class java.lang.Object

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved