|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ProrataModel
public class ProrataModel
This class represents a prorata.
| Field Summary | |
|---|---|
static int |
DAYS
Time unit in days. |
static int |
HOURS
Time unit in hours. |
static int |
MINUTES
Time unit in minutes. |
static int |
ROUND_DOWN
Rounding down mode. |
static int |
ROUND_NEAREST
Rounding to nearest mode. |
static int |
ROUND_UP
Rounding up mode. |
static int |
SECONDS
Time unit in seconds. |
| Constructor Summary | |
|---|---|
ProrataModel()
Builds an empty ProrataModel. |
|
ProrataModel(int unit,
java.math.BigDecimal step,
int mode,
java.math.BigDecimal fraction,
boolean fractionDefined)
Builds a ProrataModel. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the child represents
the marshallable object to be added into the content tree. |
java.math.BigDecimal |
getFraction()
Gets the fraction. |
int |
getRoundingMode()
Gets the rounding mode. |
java.math.BigDecimal |
getRoundingStep()
Gets the rounding step. |
int |
getTimeUnit()
Gets the time unit. |
boolean |
isFractionDefined()
Tests if the fraction is defined. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
void |
setFraction(java.math.BigDecimal fraction)
Sets the fraction. |
void |
setFractionDefined(boolean defined)
Sets the fraction defined. |
void |
setRoundingMode(int mode)
Sets the rounding mode. |
void |
setRoundingStep(java.math.BigDecimal step)
Sets the rounding step. |
void |
setTimeUnit(int unit)
Sets the time unit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SECONDS
public static final int MINUTES
public static final int HOURS
public static final int DAYS
public static final int ROUND_UP
public static final int ROUND_DOWN
public static final int ROUND_NEAREST
| Constructor Detail |
|---|
public ProrataModel()
public ProrataModel(int unit,
java.math.BigDecimal step,
int mode,
java.math.BigDecimal fraction,
boolean fractionDefined)
unit - the time unit, see setTimeUnit.step - the rounding step.mode - the rounding mode, see setRoundingMode.fraction - the fraction.fractionDefined - set the fraction defined.| Method Detail |
|---|
public void setTimeUnit(int unit)
unit - the time unit.public int getTimeUnit()
public void setRoundingStep(java.math.BigDecimal step)
step - the rounding step.public java.math.BigDecimal getRoundingStep()
public void setRoundingMode(int mode)
mode - the rounding mode.public int getRoundingMode()
public void setFraction(java.math.BigDecimal fraction)
fraction - the fraction.public java.math.BigDecimal getFraction()
public void setFractionDefined(boolean defined)
defined - the fraction defined.public boolean isFractionDefined()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - the character data to be added.
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
addChild in interface XMLMarshallabletagName - the name of tag for the child.child - the child to be added.public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - the XML output to marshall the object into.
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.