com.pkrete.jsip2.variables
Class FeeTypeFactory

java.lang.Object
  extended by com.pkrete.jsip2.variables.FeeTypeFactory

public class FeeTypeFactory
extends Object

This class generates FeeType objects based on the fee code. This class implements the Singleton design pattern, which means that only one instance is created at run time.

Author:
Petteri Kivimäki

Method Summary
 FeeType getFeeType(String code)
          Returns the fee type that matches the given code.
static FeeTypeFactory getInstance()
          Returns a reference to the singleton object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FeeTypeFactory getInstance()
Returns a reference to the singleton object. The object is created when this method is called for the first time.

Returns:
reference to the singleton object

getFeeType

public FeeType getFeeType(String code)
                   throws InvalidSIP2ResponseValueException
Returns the fee type that matches the given code.

Parameters:
code - fee type code
Returns:
fee type that matches the given code
Throws:
InvalidSIP2ResponseValueException


Copyright © 2012-2014. All Rights Reserved.