com.guiseframework.platform
Interface BrandedProduct<BRAND extends java.lang.Enum<BRAND> & BrandedProduct.Brand>

All Known Subinterfaces:
WebUserAgentProduct
All Known Implementing Classes:
AbstractBrandedProduct, DefaultWebUserAgentProduct

public interface BrandedProduct<BRAND extends java.lang.Enum<BRAND> & BrandedProduct.Brand>

The identification of a branded product, such as a user agent or a plugin, on the platform.

Author:
Garret Wilson

Nested Class Summary
static interface BrandedProduct.Brand
          The individual brand of the product.
 
Method Summary
 BRAND getBrand()
           
 boolean isBrandLessThanVersionNumber(BRAND brand, double versionNumber)
          Determines whether this product has the indicated brand and a version number less than the one indicated.
 boolean isBrandVersionNumber(BRAND brand, double versionNumber)
          Determines whether this product has the indicated brand and version number.
 

Method Detail

getBrand

BRAND getBrand()
Returns:
The brand of the product, or null if the brand is not known.

isBrandVersionNumber

boolean isBrandVersionNumber(BRAND brand,
                             double versionNumber)
Determines whether this product has the indicated brand and version number.

Parameters:
brand - The brand to check for.
versionNumber - The version number to check for.
Returns:
true if this product has the indicated brand and version number.

isBrandLessThanVersionNumber

boolean isBrandLessThanVersionNumber(BRAND brand,
                                     double versionNumber)
Determines whether this product has the indicated brand and a version number less than the one indicated.

Parameters:
brand - The brand to check for.
versionNumber - The version number to check for.
Returns:
true if this product has the indicated brand and a version number less than the one indicated.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.