|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.variables.ItemTypeFactory
public class ItemTypeFactory
This class generates ItemType objects based on the item code. This class implements the Singleton design pattern, which means that only one instance is created at run time.
| Method Summary | |
|---|---|
List<ItemType> |
getAllItemTypes()
Returns a list that contains all the item types. |
static ItemTypeFactory |
getInstance()
Returns a reference to the singleton object. |
ItemType |
getItemType(String code)
Returns the item type that matches the given code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ItemTypeFactory getInstance()
public ItemType getItemType(String code)
throws InvalidSIP2ResponseValueException
code - item type code
InvalidSIP2ResponseValueExceptionpublic List<ItemType> getAllItemTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||