cafe.main
Class ProductGroup

java.lang.Object
  extended by cafe.main.ProductGroup

public class ProductGroup
extends java.lang.Object

Author:
WoX

Field Summary
 java.lang.String[] groupname
           
 
Constructor Summary
ProductGroup(java.lang.String[] groupname, ImportProduct[] products)
          Constructs a ProductGroup with the given parameters.
 
Method Summary
 java.lang.String getName(LanguageEnum language)
          Returns the name of the group in chosen language.
 ImportProduct[] getProducts()
          Returns the importable products that belong in this group.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupname

public java.lang.String[] groupname
Constructor Detail

ProductGroup

public ProductGroup(java.lang.String[] groupname,
                    ImportProduct[] products)
Constructs a ProductGroup with the given parameters.

Parameters:
groupname - Name of the group in different languages.
products - The importable products that belong in this group.
Method Detail

getName

public java.lang.String getName(LanguageEnum language)
Returns the name of the group in chosen language.

Parameters:
language - The language of the name.
Returns:
The name in chosen language.

getProducts

public ImportProduct[] getProducts()
Returns the importable products that belong in this group.

Returns:
The importable products in this group.