public class VatRuleModel extends HCIModelAdapter implements XMLMapping
Java class represents the VAT rule configured in the SAP CC system and that can be
specified in the tax configuration of a charge condition inserted in an offer.TaxParameterModel,
ChargeConditionModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="vatRule">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="DescriptionType" minOccurs="1" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="supplierZone" type="SupplierZoneType" use="required"/>
<xs:attribute name="b2bTaxationPlace" type="TaxationPlaceType"/>
<xs:attribute name="b2cTaxationPlace" type="TaxationPlaceType"/>
<xs:attribute name="defaultB2bTaxationPlace" type="TaxationPlaceType" use="required"/>
<xs:attribute name="defaultB2cTaxationPlace" type="TaxationPlaceType" use="required"/>
</xs:complexType>
</xs:element><xs:simpleType name="SupplierZoneType">
<xs:restriction base="xs:decimal">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType><xs:simpleType name="TaxationPlaceType">
<xs:restriction base="xs:decimal">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: "vatRule"
|
| Constructor and Description |
|---|
VatRuleModel()
Creates an empty VAT rule.
|
| Modifier and Type | Method and Description |
|---|---|
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 object, the
child representing
the marshallable object which must be added to the element. |
com.highdeal.tax.VatRule.TaxationPlace |
getB2BTaxationPlace()
Returns the VAT rule b2bTaxationPlace.
|
com.highdeal.tax.VatRule.TaxationPlace |
getB2CTaxationPlace()
Returns the VAT rule b2cTaxationPlace.
|
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
com.highdeal.tax.VatRule.TaxationPlace |
getDefaultB2BTaxationPlace()
Returns the VAT rule defaultB2bTaxationPlace.
|
com.highdeal.tax.VatRule.TaxationPlace |
getDefaultB2CTaxationPlace()
Returns the VAT rule defaultB2cTaxationPlace.
|
java.lang.String |
getDescription()
Returns the VAT rule description.
|
java.lang.String |
getName()
Returns the VAT rule name.
|
com.highdeal.tax.VatRule.SupplierZone |
getSupplierZone()
Returns the VAT rule supplierZone.
|
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setB2BTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace b2bTaxationPlace)
Sets the VAT rule b2bTaxationPlace.
|
void |
setB2CTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace b2cTaxationPlace)
Sets the VAT rule b2cTaxationPlace.
|
void |
setDefaultB2BTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace defaultB2bTaxationPlace)
Sets the VAT rule defaultB2bTaxationPlace.
|
void |
setDefaultB2CTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace defaultB2cTaxationPlace)
Sets the VAT rule defaultB2cTaxationPlace.
|
void |
setDescription(java.lang.String description)
Sets the VAT rule description.
|
void |
setName(java.lang.String name)
Sets the VAT rule name.
|
void |
setSupplierZone(com.highdeal.tax.VatRule.SupplierZone supplierZone)
Sets the VAT rule supplierZone.
|
marshalpublic static final java.lang.String TAG_NAME
public final java.lang.String getName()
public void setName(java.lang.String name)
name - The VAT rule namepublic final java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The VAT rule descriptionpublic final com.highdeal.tax.VatRule.SupplierZone getSupplierZone()
public void setSupplierZone(com.highdeal.tax.VatRule.SupplierZone supplierZone)
supplierZone - The VAT rule supplierZonepublic final com.highdeal.tax.VatRule.TaxationPlace getB2BTaxationPlace()
public void setB2BTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace b2bTaxationPlace)
b2bTaxationPlace - The VAT rule b2bTaxationPlacepublic final com.highdeal.tax.VatRule.TaxationPlace getB2CTaxationPlace()
public void setB2CTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace b2cTaxationPlace)
b2cTaxationPlace - The VAT rule b2cTaxationPlacepublic final com.highdeal.tax.VatRule.TaxationPlace getDefaultB2BTaxationPlace()
public void setDefaultB2BTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace defaultB2bTaxationPlace)
defaultB2bTaxationPlace - The VAT rule defaultB2bTaxationPlacepublic final com.highdeal.tax.VatRule.TaxationPlace getDefaultB2CTaxationPlace()
public void setDefaultB2CTaxationPlace(com.highdeal.tax.VatRule.TaxationPlace defaultB2cTaxationPlace)
defaultB2cTaxationPlace - The VAT rule defaultB2cTaxationPlacepublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects intopublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tagJava class with a default constructorpublic java.lang.String getTagName()
ITagNameProvidergetTagName in interface ITagNameProvider