Package com.highdeal.pnr.hci
Class PricingMacroModel
java.lang.Object
com.highdeal.pnr.hci.PricingMacroModel
- All Implemented Interfaces:
ITagNameProvider,XMLMarshallable,ContextualNode,ICatalogObject,com.highdeal.pnr.hci.IManageableByCockpit
public class PricingMacroModel
extends Object
implements ContextualNode, XMLMarshallable, ICatalogObject, ITagNameProvider, com.highdeal.pnr.hci.IManageableByCockpit
This class represents a pricing macro.
The currency used in a pricing macro always corresponds to the currency used by the calling charge component.
The currency used in a pricing macro always corresponds to the currency used by the calling charge component.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="pricingMacro">
<xs:complexType>
<xs:sequence>
<xs:element ref="inProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="outProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="component" minOccurs="0" maxOccurs="1"/>
<xs:element ref="rootChronology" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="owner" type="xs:string" use="required"/>
<xs:attribute name="currency" type="xs:string" use="optional"/> <!-- deprecated -->
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="managedByCockpit" type="xs:boolean" use="optional" default="false" />
</xs:complexType>
</xs:element>
<xs:element name="rootChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty PricingMacroModel.PricingMacroModel(String code, String description, String currencyCode) Deprecated.Deprecated since version 3.0 of SAP CC -
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.booleanReturns true if the pricing macro is valid.getCode()Gets the code.getContext(ContextualNode child) Gets the context description for the specified child; The context description contains all the context properties.Deprecated.Deprecated since version 3.0 of SAP CCGets the descriptionGets the in properties.getInProperty(String name) Gets the in property with the specified name.Gets the out properties.getOwner()Returns the catalog owner of the object.Gets the reference.getRoot()Gets the root.Gets the root chronology.Gets the XML tag name of the HCI model.Gets the inherited context; The context description contains all the context properties.booleanReturnstrueif this object is compatible with the Cockpit.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.voidSets the code.voidsetContext(RatingContextDescription contextDescription) Sets the context.voidsetCurrencyCode(String currencyCode) Deprecated.Deprecated since version 3.0 of SAP CCvoidSets the descriptionvoidsetInProperties(Vector<InMacroPropertyModel> inProperties) Sets the in properties.voidsetIsManagedByCockpit(boolean isManagedByCockpit) Sets whether this object is compatible with the Cockpit.voidsetOutProperties(Vector<OutMacroPropertyModel> outProperties) Sets the out properties.voidSets the ownervoidsetParent(ContextualNode node) Sets the parent nodevoidSets the reference.voidSets the root.
-
Field Details
-
TAG_NAME
The value of that constant is the XML tag name of the Pricing Macro.- See Also:
-
-
Constructor Details
-
PricingMacroModel
public PricingMacroModel()Builds an empty PricingMacroModel. -
PricingMacroModel
Deprecated.Deprecated since version 3.0 of SAP CCBuilds a PricingMacroModel- Parameters:
code- The code of the pricing macrodescription- The description of the pricing macrocurrencyCode- The currency code of the pricing macro
-
-
Method Details
-
getReference
Gets the reference.- Returns:
- the reference.
-
setReference
Sets the reference.- Parameters:
r- the reference.
-
getCode
Gets the code.- Returns:
- the code.
-
setCode
Sets the code.- Parameters:
c- the code.
-
isManagedByCockpit
public boolean isManagedByCockpit()Description copied from interface:com.highdeal.pnr.hci.IManageableByCockpitReturnstrueif this object is compatible with the Cockpit.- Specified by:
isManagedByCockpitin interfacecom.highdeal.pnr.hci.IManageableByCockpit- Returns:
trueif this object is compatible with the Cockpit.
-
setIsManagedByCockpit
public void setIsManagedByCockpit(boolean isManagedByCockpit) Description copied from interface:com.highdeal.pnr.hci.IManageableByCockpitSets whether this object is compatible with the Cockpit.- Specified by:
setIsManagedByCockpitin interfacecom.highdeal.pnr.hci.IManageableByCockpit- Parameters:
isManagedByCockpit-trueif this object is compatible with the Cockpit
-
getRoot
Gets the root.- Returns:
- the root.
-
setRoot
Sets the root.- Parameters:
r- the root.
-
getDescription
Gets the description- Returns:
- The description
-
setDescription
Sets the description- Parameters:
d- The description
-
getCurrencyCode
Deprecated.Deprecated since version 3.0 of SAP CCGets the currency code- Returns:
null
-
setCurrencyCode
Deprecated.Deprecated since version 3.0 of SAP CCSets the currency code- Parameters:
currencyCode- the currency code
-
getOwner
Description copied from interface:ICatalogObjectReturns the catalog owner of the object.- Specified by:
getOwnerin interfaceICatalogObject- Returns:
- The catalog owner of the object
-
setOwner
Sets the owner- Parameters:
p- the owner
-
getInProperties
Gets the in properties.- Returns:
- a Vector of
InMacroPropertyModel.
-
getInProperty
Gets the in property with the specified name.- Parameters:
name- name of the in property to fetch- Returns:
- the in property that has the given name (
nullif not found)
-
setInProperties
Sets the in properties.- Parameters:
inProperties- a Vector ofInMacroPropertyModel.
-
getOutProperties
Gets the out properties.- Returns:
- a Vector of
OutMacroPropertyModel.
-
setOutProperties
Sets the out properties.- Parameters:
outProperties- a Vector of {link OutMacroPropertyModel OutMacroPropertyModel}.
-
getRootChronology
Gets the root chronology.- Returns:
- the root chronology.
-
setParent
Description copied from interface:ContextualNodeSets the parent node- Specified by:
setParentin interfaceContextualNode- Parameters:
node- The parent node
-
setContext
Sets the context.- Parameters:
contextDescription- the context.
-
getContext
Description copied from interface:ContextualNodeGets the context description for the specified child; The context description contains all the context properties.- Specified by:
getContextin interfaceContextualNode- Parameters:
child- The child node- Returns:
- The context description
-
inheritedContext
Description copied from interface:ContextualNodeGets the inherited context; The context description contains all the context properties.- Specified by:
inheritedContextin interfaceContextualNode- Returns:
- The inherited context
-
checkValidity
public boolean checkValidity()Returns true if the pricing macro is valid.- Returns:
- true if the pricing macro is valid, false otherwise.
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-
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
-