com.highdeal.pnr.hci
Class ChargedItemClassFieldModel

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

public class ChargedItemClassFieldModel
extends ChargedItemClassField
implements XMLMarshallable

This class improves the ChargedItemClassField adding XML marshalling.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="chargedItemClassField">
   <xs:complexType>
     <xs:attribute name="name" type="xs:string" use="required" />
     <xs:attribute name="description" type="xs:string" />
     <xs:attribute name="type" type="ChargedItemFieldType" use="required" />
     <xs:attribute name="value" type="xs:string" />
     <xs:attribute name="propertyName" type="ChargedItemFieldPropertyNameType" />
   </xs:complexType>
 </xs:element>
<xs:simpleType name="ChargedItemFieldType">
   <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="ChargedItemFieldPropertyNameType">
   <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
protected static java.lang.String MODEL_NAME
           
 
Constructor Summary
ChargedItemClassFieldModel()
           
ChargedItemClassFieldModel(ChargedItemFieldType type)
           
ChargedItemClassFieldModel(java.lang.String name, ChargedItemFieldType type)
           
 
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.
 ChargedItemClassFieldModel duplicate()
           
 java.lang.String getTagName()
           
 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.pnr.hci.ChargedItemClassField
isPropertyOrValueSet
 
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

protected static java.lang.String MODEL_NAME
Constructor Detail

ChargedItemClassFieldModel

public ChargedItemClassFieldModel()

ChargedItemClassFieldModel

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

ChargedItemClassFieldModel

public ChargedItemClassFieldModel(ChargedItemFieldType type)
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

duplicate

public ChargedItemClassFieldModel duplicate()

getTagName

public java.lang.String getTagName()

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)