|
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.tax.hci.TaxDataModel
public class TaxDataModel
This class represents the taxation data handled by the system.
You can redefine here certain EZTax taxation data for a specific account.
These taxation data can be:
| XML Schema Fragment |
<xs:element name="taxData">
<xs:complexType>
<xs:sequence>
<xs:element name="eztaxData" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element> |
| Field Summary | |
|---|---|
static java.lang.String |
EZTAX_CUSTOMER_TYPE
|
static java.lang.String |
EZTAX_INC_CODE
|
static java.lang.String |
EZTAX_ORIGINATION
|
static java.lang.String |
EZTAX_RESALE_FLAG
|
static java.lang.String |
EZTAX_SERVICE_ADDRESS
|
static java.lang.String |
EZTAX_TERMINATION
|
| Constructor Summary | |
|---|---|
TaxDataModel()
Builds an empty tax data. |
|
TaxDataModel(java.lang.String taxDataStr)
Builds an empty tax data. |
|
| 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. |
boolean |
checkIfValid()
Returns true if the tax data is valid. |
java.util.Properties |
fromCSVString(java.lang.String taxDataStr)
Returns a properties set from a CSV string representation of the tax data. |
java.util.Properties |
getAllTaxData()
Returns all set tax data, as a Properties with
names as key and values as values. |
java.lang.String |
getTaxData(java.lang.String name)
Gets the description associated with the given language, if exists. |
boolean |
isEmpty()
Returns true if the tax data is empty. |
void |
isValid()
Returns true if the tax data is valid. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
removeTaxData(java.lang.String name)
Removes a description associated with a language. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
void |
setTaxData(java.lang.String name,
java.lang.String value)
Sets a description associated with a language. |
java.lang.String |
toCSVString()
Returns a CSV string representation of the tax data. |
java.lang.String |
toString()
Returns a string representation of the tax data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EZTAX_ORIGINATION
public static final java.lang.String EZTAX_TERMINATION
public static final java.lang.String EZTAX_SERVICE_ADDRESS
public static final java.lang.String EZTAX_CUSTOMER_TYPE
public static final java.lang.String EZTAX_RESALE_FLAG
public static final java.lang.String EZTAX_INC_CODE
| Constructor Detail |
|---|
public TaxDataModel()
public TaxDataModel(java.lang.String taxDataStr)
taxDataStr - a string that contains tax data, build with {toCSVString().| Method Detail |
|---|
public void setTaxData(java.lang.String name,
java.lang.String value)
name - the name of the tax data.value - the value associated with the given tax data.public void removeTaxData(java.lang.String name)
name - the name of the tax data.public java.lang.String getTaxData(java.lang.String name)
name - the name of the tax data.
public java.util.Properties getAllTaxData()
Properties with
names as key and values as values.
Properties withpublic boolean isEmpty()
public boolean checkIfValid()
public void isValid()
throws com.highdeal.bnr.hci.InvalidAccountException
com.highdeal.bnr.hci.InvalidAccountException - if the tax data is not valid.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCSVString()
public java.util.Properties fromCSVString(java.lang.String taxDataStr)
taxDataStr - a CSV string representation
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - the XML attributes of the current tag.
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 addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - the character data 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.