RuleType Class

com.bea.commerce.ebusiness.discount.mgmt
RuleType Class

public final class RuleType

    extends Object

This class represents the two types of discount rules

Related Topics

QualificationDiscountDef


Hierarchy
Object
  RuleType

Field Summary

public static final int
I_ITEM
The integer value for the item instance
public static final int
I_ORDER
The integer value for the item instance
public static final RuleType
ITEM
the item instance
public static final RuleType
ORDER
the order instance
public static final String
S_ITEM
The string value for the item instance
public static final String
S_ORDER
The string value for the order instance
 

Method Summary

public boolean
equals(Object object)
Compares the specified object to this object.
public int
getInt()
Returns the string value for this instance.
public static RuleType
getObject(String token)
public String
getString()
Returns the string value for this instance.
public int
hashCode()
Returns a hashcode value for the object.
public String
toString()
Returns a string value and the class name for the instance.
 
Methods from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
   

Field Detail

I_ITEM

public static final int I_ITEM
The integer value for the item instance


I_ORDER

public static final int I_ORDER
The integer value for the item instance


ITEM

public static final RuleType ITEM
the item instance


ORDER

public static final RuleType ORDER
the order instance


S_ITEM

public static final String S_ITEM
The string value for the item instance


S_ORDER

public static final String S_ORDER
The string value for the order instance

 

Method Detail

equals(Object) Method

public boolean equals(Object object)
Compares the specified object to this object. If the specified object is identical to this object this method will return true. False will be returned otherwise.

Overrides
Object.equals(Object)

getInt() Method

public int getInt()
Returns the string value for this instance.


getObject(String) Method

public static RuleType getObject(String token)

Parameters

token
a string to match to a RuleType object

Returns

the RuleType object that corrsponds to the specified string token.

getString() Method

public String getString()
Returns the string value for this instance.


hashCode() Method

public int hashCode()
Returns a hashcode value for the object.

Overrides
Object.hashCode()

toString() Method

public String toString()
Returns a string value and the class name for the instance. This method is intended for debugging and may change. Use the getString() method to obtain the string value of the object.

Overrides
Object.toString()