com.ibm.commerce.utf.utils
Class RFQComments

java.lang.Object
  |
  +--com.ibm.commerce.utf.utils.RFQComments

public class RFQComments
extends java.lang.Object

The RFQComments class represents freeform comments that have been specified by the buyer or the seller during RFQ negotiations.

These are RFQ level comments which may include special instructions like

 Deliver to Warehouse 1 between 7 and 8 pm on Tuesday.
 

or

 Call before delivery.
 

Associated with every comment are two flags - mandatory and changeable. If the mandatory flag is turned on(value 1), it implies that the response to the comment is mandatory. The changeable flag indicates whether the comment should be accepted as is by the other party (value 0), or whether an alternative comment can be provided (value 1). A TC identifier can be optionally associated with every comment. If the TC ID is specified, then the comment already exists. If not, a new comment is being processed.
The class RFQComments includes methods for getting and setting the fields that comprise an rfq comment.


Field Summary
 java.lang.String attrtype
           
 java.lang.Integer changeable
           
 java.lang.Integer mandatory
           
 java.lang.Long tc_id
           
 java.lang.String value
           
 
Constructor Summary
RFQComments(java.util.Hashtable h)
          Constructs an instance of the RFQComments class using the incoming Hashtable.
 
Method Summary
 java.lang.Integer getChangeable()
          Get the changeable flag.
 java.lang.Integer getMandatory()
          Get the mandatory flag.
 java.lang.Long getTc_id()
          Get Terms and Condition Id.
 java.lang.String getValue()
          Get the string representing the comment.
 boolean isChangeable()
          Returns whether the changeable flag is on or off.
 boolean isMandatory()
          Returns whether the mandatory flag is on or off.
 void setChangeable(java.lang.Integer newChangeable)
          Set the changeable flag to the incoming value.
 void setMandatory(java.lang.Integer newMandatory)
          Set the mandatory flag to the incoming value.
 void setTc_id(java.lang.Long newTc_id)
          Sets the term and condition ID to the incoming value.
 void setValue(java.lang.String newValue)
          Sets the member variable to the incoming value for the comment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attrtype

public java.lang.String attrtype

changeable

public java.lang.Integer changeable

mandatory

public java.lang.Integer mandatory

tc_id

public java.lang.Long tc_id

value

public java.lang.String value
Constructor Detail

RFQComments

public RFQComments(java.util.Hashtable h)
            throws java.lang.Exception
Constructs an instance of the RFQComments class using the incoming Hashtable.

Every RFQ comment has the following fields:

  1. mandatory: A flag indicating whether a response is mandatory for this comment
  2. changeable: A flag indicating whether the response could specify an alternative comment or accept the comment as is.
  3. value: The actual comment
  4. Term and Condition Id(tcId): If this is an existing comment, a TC ID would be associated with it. For new comments, the TC ID is blank

Throws:
java.lang.Exception -  
Method Detail

getChangeable

public java.lang.Integer getChangeable()
Get the changeable flag.
Returns:
The changeable flag.

getMandatory

public java.lang.Integer getMandatory()
Get the mandatory flag.
Returns:
The mandatory flag.

getTc_id

public java.lang.Long getTc_id()
Get Terms and Condition Id.
Returns:
The identifier for the term and condition.

getValue

public java.lang.String getValue()
Get the string representing the comment.
Returns:
The actual comment.

isChangeable

public boolean isChangeable()
Returns whether the changeable flag is on or off.
Returns:
false if non-changeable, true if changeable.

isMandatory

public boolean isMandatory()
Returns whether the mandatory flag is on or off.
Returns:
true if mandatory, false if optional.

setChangeable

public void setChangeable(java.lang.Integer newChangeable)
Set the changeable flag to the incoming value.
Parameters:
newChangeable - The value for the changeable flag.

setMandatory

public void setMandatory(java.lang.Integer newMandatory)
Set the mandatory flag to the incoming value.
Parameters:
newMandatory - The value for the mandatory flag.

setTc_id

public void setTc_id(java.lang.Long newTc_id)
Sets the term and condition ID to the incoming value.
Parameters:
newTc_id - The term and condition identifier.

setValue

public void setValue(java.lang.String newValue)
Sets the member variable to the incoming value for the comment.
Parameters:
newValue - The string representing the actual comment.