SAP CC 1.0
API 4.2 (Core)

com.highdeal.pnr.tif
Class DetailRecord

java.lang.Object
  extended by com.highdeal.pnr.tif.DetailRecord

public class DetailRecord
extends java.lang.Object

This class represents the details of a transaction.

See Also:
Transaction

Constructor Summary
DetailRecord()
          Builds an empty detail record.
 
Method Summary
 void addDetail(java.lang.String detail, java.math.BigDecimal value)
          Adds a number detail to the details record.
 void addDetail(java.lang.String detail, java.util.Date value)
          Adds a date detail to the details record.
 void addDetail(java.lang.String detail, java.lang.Object value)
          Adds a detail to the details record.
 void addDetail(java.lang.String detail, java.lang.String value)
          Adds a string detail to the details record.
 DetailRecord duplicate()
           
 boolean equals(java.lang.Object other)
          Compares this DetailRecord with an other.
 java.lang.Object getDetail(java.lang.String detail)
          Retrieves the value of a detail.
 java.util.Collection<java.lang.String> getDetails()
          Returns a collection of the detail names in this detail record.
 int size()
          Returns the number of details.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailRecord

public DetailRecord()
Builds an empty detail record.

Method Detail

addDetail

public void addDetail(java.lang.String detail,
                      java.lang.Object value)
Adds a detail to the details record.

Parameters:
detail - name of the detail.
value - value of the detail.

addDetail

public void addDetail(java.lang.String detail,
                      java.lang.String value)
Adds a string detail to the details record.

Parameters:
detail - name of the detail.
value - value of the detail.

addDetail

public void addDetail(java.lang.String detail,
                      java.math.BigDecimal value)
Adds a number detail to the details record.

Parameters:
detail - name of the detail.
value - value of the detail.

addDetail

public void addDetail(java.lang.String detail,
                      java.util.Date value)
Adds a date detail to the details record.

Parameters:
detail - name of the detail.
value - value of the detail.

getDetail

public java.lang.Object getDetail(java.lang.String detail)
Retrieves the value of a detail.

Parameters:
detail - the name of the detail to retrieve.
Returns:
the value of the detail.

getDetails

public java.util.Collection<java.lang.String> getDetails()
Returns a collection of the detail names in this detail record.

Returns:
a collection of the detail names.

size

public int size()
Returns the number of details.

Returns:
the number of details.

equals

public boolean equals(java.lang.Object other)
Compares this DetailRecord with an other. Required for tests with APITestTool

Overrides:
equals in class java.lang.Object
Parameters:
other - the object to compare with.
Returns:
the number of details.

duplicate

public final DetailRecord duplicate()

SAP CC 1.0
API 4.2 (Core)


API Reference - July 2009

SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2

(c) Copyright 2009 SAP AG. All rights reserved.