Package com.highdeal.pnr.hci
Class ChargedItemMappingEntryModel
java.lang.Object
com.highdeal.util.map.PropertyDescription<ChargedItemFieldType>
com.highdeal.pnr.hci.ChargedItemMappingEntry
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="accountCode|accountEventDate|accountTypeCode|accountTypeName|activationDate|allowanceContext|allowanceEndDate|allowanceEventClassName|allowanceShareId|allowanceStartDate|allowanceUniqueId|amount|baseAmount|chargeActivationCancellationDate|chargeActivationEffectiveDate|chargeCode|chargeReference|chargeReferenceName|chargeTypeCode|chargeTypeName|chargeableItemClassName|chargeableItemId|chargeableItemIdType|chargeableItemPackageCode|chargedItemId|chargedItemIdStr|chargedItemSetId|chargedItemSetIdStr|chargedItemSetIdType|chargedTaxAmount|chargedTaxCode|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)\..+|chargedTaxStatusCode|chargedTaxStatusId|chargedTotalAmount|chargingComponentName|consumptionDate|contractId|contractItemExternalId|contractItemId|contractType|currency|date|dispatchCode1|dispatchCode2|dispatchCode3|emptyBoolean|emptyDate|emptyNumber|emptyString|eventDate|eventProcessingDate|excludedRecurringPeriodStopDate|externalAccountCode|externalAccountName|externalSystemCode|includedRecurringPeriodStopDate|isAllowance|isAllowanceStr|isChargeableItemExported|isClient|isCredit|isDebit|isMaster|isPartner|isPrepaid|isPrepaidRefill|isPrepaidUsage|isProrated|isRefund|isSharingGroupContributor|isTaxIncluded|iso_currency|itemSetId|itemSetIdStr|itemSetIdType|offerCode|origin|overrunFrom|overrunTo|prepaidAccountName|prepaidBalanceAmount|pricePlanName|rateComponentName|ratedAmount|ratedBaseAmount|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)\..+|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)\..+|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)\..+|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)\..+|ratedTaxAmount|ratedTaxCode|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)\..+|ratedTaxStatusCode|ratedTaxStatusId|ratedTotalAmount|ratedUnroundedAmount|recurringStart|recurringStartRef|recurringStop|recurringStopRef|refillAmount|refillCurrency|refillDate|refillIsoCurrency|reservationId|senderJobId|serviceIdentifier|serviceProvider|sessionId|sharingGroupId|subscriberAccountCode|subscriberAccountReference|subscriptionCode|subscriptionCommitmentExpirationDate|subscriptionResumptionDate|subscriptionSuspensionDate|taxAmount|taxCode|taxDetType|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)\..+|taxStatusCode|taxStatusId|taxUsBusinessClass|taxUsCallDuration|taxUsCountyExempt|taxUsCustomerType|taxUsFacilitiesBasedFlag|taxUsFederalExempt|taxUsFranchiseFlag|taxUsIncorporatedCode|taxUsLifeLineFlag|taxUsLineCount|taxUsLocalExempt|taxUsLocationCount|taxUsOrigination|taxUsOriginationFlag|taxUsRegulatedFlag|taxUsResaleFlag|taxUsServiceAddress|taxUsServiceAddressFlag|taxUsServiceClass|taxUsServiceType|taxUsStateExempt|taxUsTaxData|taxUsTaxationDate|taxUsTelecomType|taxUsTermination|taxUsTerminationFlag|taxUsTransactionType|taxVatBusinessEntity|taxVatGrossPriceFlag|taxVatRateCode|taxVatRawRate|taxVatRawRateId|taxVatSupplierCountryCode|taxVatTaxationPlace|thresholdAmount|totalAmount|triggeringContractId|triggeringContractItemExternalId|userServiceIdentifier" />
</xs:restriction>
</xs:simpleType>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChargedItemMappingEntryModel(String name, ChargedItemFieldType type) ChargedItemMappingEntryModel(String name, ChargedItemFieldType type, Object defaultValue, String propertyName) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(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
-
Field Details
-
MODEL_NAME
- See Also:
-
-
Constructor Details
-
ChargedItemMappingEntryModel
public ChargedItemMappingEntryModel() -
ChargedItemMappingEntryModel
-
ChargedItemMappingEntryModel
public ChargedItemMappingEntryModel(String name, ChargedItemFieldType type, Object defaultValue, String propertyName)
-
-
Method Details
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-