public class PaymentType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
PaymentType(java.lang.String pPaymentGroupIdentifier,
java.lang.String pDefaultDisplayName,
java.lang.String pPaymentGroupVariation,
java.lang.String pResourceName,
java.lang.String pResourceBundle)
Constructs a new payment type object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object pObject)
Checks whether another object is equal to this payment type object.
|
java.lang.String |
getDefaultDisplayName()
Returns the default display name associated with this payment type.
|
java.lang.String |
getDisplayName(java.util.Locale pLocale)
Returns the display name associated with the given locale for this payment type.
|
java.lang.String |
getDisplayNameResource()
Returns the resource name which can be used to look up a localized name for this payment type.
|
java.lang.String |
getPaymentGroupIdentifier()
Returns the payment group identifier associated with this payment type.
|
java.lang.String |
getPaymentGroupVariation()
Returns the specific variation of the payment group associated with this payment type.
|
java.lang.String |
getResourceBundle()
Returns the name of the resource bundle associated with this payment type.
|
int |
hashCode()
Returns a hash code for this object.
|
boolean |
matches(PaymentType pOtherPaymentType)
Checks if another payment type object matches this one.
|
void |
setDefaultDisplayName(java.lang.String pDefaultDisplayName)
Set the default display name associated with this payment type.
|
void |
setDisplayNameResource(java.lang.String pDisplayNameResource)
Set a resource name which can used to look up a localized name for this payment type.
|
void |
setPaymentGroupIdentifier(java.lang.String pPaymentGroupIdentifier)
Set the payment group identifier associated with this payment type.
|
void |
setPaymentGroupVariation(java.lang.String pPaymentGroupVariation)
Set the specific variation of the payment group associated with this payment type.
|
void |
setResourceBundle(java.lang.String pResourceBundle)
Set the name of the resource bundle associated with this payment type.
|
protected boolean |
stringsEqualAllowingNull(java.lang.String pFirstString,
java.lang.String pSecondString)
Compare two strings for equality, allowing either string to be null, and nulls
to be classed as equal.
|
java.lang.String |
toString()
Return a string presentation of this payment type object.
|
public PaymentType(java.lang.String pPaymentGroupIdentifier, java.lang.String pDefaultDisplayName, java.lang.String pPaymentGroupVariation, java.lang.String pResourceName, java.lang.String pResourceBundle)
pPaymentGroupIdentifier
- The payment group type identifierpDefaultDisplayName
- A localized default display namepPaymentGroupVariation
- An identifier for this payment type's variation.pResourceName
- A resource key for this payment type.pResourceBundle
- The name of the resource bundle for this payment type.public java.lang.String getPaymentGroupVariation()
public void setPaymentGroupVariation(java.lang.String pPaymentGroupVariation)
pPaymentGroupVariation
- The payment group variation for this payment type.public java.lang.String getPaymentGroupIdentifier()
public void setPaymentGroupIdentifier(java.lang.String pPaymentGroupIdentifier)
pPaymentGroupIdentifier
- The identifier for the payment group.public java.lang.String getDisplayNameResource()
public void setDisplayNameResource(java.lang.String pDisplayNameResource)
pDisplayNameResource
- The resource name to use.public java.lang.String getDefaultDisplayName()
public void setDefaultDisplayName(java.lang.String pDefaultDisplayName)
pDefaultDisplayName
- The display name for this payment type.public java.lang.String getResourceBundle()
public void setResourceBundle(java.lang.String pResourceBundle)
pResourceBundle
- The name of the resource bundle.public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
pOject
- the object to compare toprotected boolean stringsEqualAllowingNull(java.lang.String pFirstString, java.lang.String pSecondString)
pFirstString
- The first string to compare.pSecondString
- The second string to compare.public int hashCode()
hashCode
in class java.lang.Object
public boolean matches(PaymentType pOtherPaymentType)
pOtherPaymentType
- The payment type object we wish to checkpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayName(java.util.Locale pLocale) throws java.util.MissingResourceException
pLocale
- The locale to use in the lookupMissingResourceExcpetion
- if no resource bundle or string was found.java.util.MissingResourceException