com.highdeal.pnr.hci
Class ChargedItemMappingEntryModel

java.lang.Object
  extended by com.highdeal.util.map.PropertyDescription<ChargedItemFieldType>
      extended by com.highdeal.pnr.hci.ChargedItemMappingEntry
          extended by com.highdeal.pnr.hci.ChargedItemMappingEntryModel
All Implemented Interfaces:
XMLMarshallable, com.highdeal.util.map.IPropertyDescription<ChargedItemFieldType>

public class ChargedItemMappingEntryModel
extends ChargedItemMappingEntry
implements XMLMarshallable

This class improves the ChargedItemMappingEntry adding XML marshalling.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="chargedItemMappingEntry">
   <xs:complexType>
     <xs:attribute name="name" type="xs:string" use="required" />
     <xs:attribute name="type" type="ChargedItemEntryType" use="required" />
     <xs:attribute name="value" type="xs:string" />
     <xs:attribute name="propertyName" type="ChargedItemMappingEntryPropertyNameType" />
   </xs:complexType>
 </xs:element>
<xs:simpleType name="ChargedItemEntryType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="string"/>
     <xs:enumeration value="date"/>
     <xs:enumeration value="number"/>
     <xs:enumeration value="boolean"/>
   </xs:restriction>
 </xs:simpleType>
<xs:simpleType name="ChargedItemMappingEntryPropertyNameType">
   <xs:restriction base="xs:string">
     <xs:pattern value="ratedDetailString\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|chargedTotalAmount|contractItemId|taxUsServiceAddressFlag|overrunFrom|taxVatRawRateId|ratedUnroundedAmount|chargeableItemIdType|chargeableItemPackageCode|taxUsTerminationFlag|chargedItemSetIdType|baseAmount|taxUsServiceClass|isProrated|taxVatRawRate|taxStatusId|reservationId|excludedRecurringPeriodStopDate|isRefund|taxUsIncorporatedCode|chargeTypeName|refillAmount|emptyNumber|subscriptionSuspensionDate|chargeActivationEffectiveDate|taxStatusCode|serviceIdentifier|taxUsLocalExempt|chargedTaxCode|refillDate|itemSetIdType|taxUsTermination|overrunTo|recurringStart|taxUsFacilitiesBasedFlag|chargeActivationCancellationDate|dispatchCode3|activationDate|date|dispatchCode1|dispatchCode2|currency|userServiceIdentifier|chargeableItemId|chargedItemSetIdStr|totalAmount|consumptionDate|rateComponentName|emptyBoolean|taxVatBusinessEntity|isPartner|ratedTaxDetail\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|taxUsTransactionType|ratedDetailBoolean\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|chargedTaxAmount|chargedTaxStatusId|taxUsOriginationFlag|taxUsTaxationDate|chargeReferenceName|ratedTaxAmount|emptyString|eventDate|accountTypeName|refillIsoCurrency|thresholdAmount|taxUsLifeLineFlag|ratedDetailDate\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|ratedBaseAmount|accountTypeCode|taxUsRegulatedFlag|taxDetail\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|recurringStop|taxUsBusinessClass|taxUsTelecomType|taxVatGrossPriceFlag|subscriptionResumptionDate|taxUsLocationCount|amount|accountCode|pricePlanName|isAllowance|ratedDetailNumber\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|contractType|contractId|serviceProvider|isClient|chargedItemSetId|triggeringContractId|ratedTaxCode|ratedTotalAmount|taxUsResaleFlag|emptyDate|chargingComponentName|isTaxIncluded|recurringStartRef|taxUsLineCount|itemSetId|taxUsStateExempt|chargedTaxStatusCode|subscriberAccountReference|subscriberAccountCode|taxVatRateCode|taxUsCustomerType|taxUsFranchiseFlag|includedRecurringPeriodStopDate|taxAmount|taxDetType|sessionId|prepaidAccountName|contractItemExternalId|itemSetIdStr|isMaster|allowanceStartDate|accountEventDate|isChargeableItemExported|subscriptionCommitmentExpirationDate|iso_currency|taxVatSupplierCountryCode|allowanceEndDate|taxUsCallDuration|taxUsCountyExempt|isCredit|offerCode|isPrepaid|taxUsTaxData|taxUsFederalExempt|ratedTaxStatusId|ratedAmount|chargeReference|externalSystemCode|chargedTaxDetail\.(default|merging|splitting|computed|counter|counter_pre|counter_initial|counter_transient|counter_transient_initial|counter_transient_pre|item|parameter|out|tax|charge|refill|external|prepaid_account|internal|counter_wo_reservation|counter_wo_reservation_pre|parameter_plan)\..+|allowanceEventClassName|prepaidBalanceAmount|isPrepaidUsage|eventProcessingDate|isPrepaidRefill|taxUsServiceAddress|taxUsServiceType|taxUsOrigination|taxVatTaxationPlace|externalAccountCode|origin|recurringStopRef|chargeableItemClassName|refillCurrency|taxCode|chargeTypeCode|subscriptionCode|ratedTaxStatusCode|externalAccountName|chargeCode|isDebit|allowanceUniqueId|senderJobId" />
   </xs:restriction>
 </xs:simpleType>


Field Summary
static java.lang.String MODEL_NAME
           
 
Constructor Summary
ChargedItemMappingEntryModel()
           
ChargedItemMappingEntryModel(java.lang.String name, ChargedItemFieldType type)
           
ChargedItemMappingEntryModel(java.lang.String name, ChargedItemFieldType type, java.lang.Object defaultValue, java.lang.String propertyName)
           
 
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 object, the child representing the marshallable object which must be added to the element.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 
Methods inherited from class com.highdeal.util.map.PropertyDescription
getDefaultValue, getDescription, getName, getPropertyName, getType, setDefaultValue, setDescription, setName, setPropertyName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_NAME

public static final java.lang.String MODEL_NAME
See Also:
Constant Field Values
Constructor Detail

ChargedItemMappingEntryModel

public ChargedItemMappingEntryModel()

ChargedItemMappingEntryModel

public ChargedItemMappingEntryModel(java.lang.String name,
                                    ChargedItemFieldType type)

ChargedItemMappingEntryModel

public ChargedItemMappingEntryModel(java.lang.String name,
                                    ChargedItemFieldType type,
                                    java.lang.Object defaultValue,
                                    java.lang.String propertyName)
Method Detail

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)