public class CatalogEntryModel extends java.lang.Object implements XMLMarshallable
Java class represents a pricing catalog or an entry in a catalog in master data of a service provider; A catalog
includes all the business objects that are necessary to configure the pricing logic of marketable services consumed by the end customers of
the service provider.
A catalog entry includes a reference, an owner (service provider), a name, a type (directory or object), and a code. It can contain other catalog entries in a hierarchical way.
A pricing catalog is a directory entry.
You can manage all the catalogs with the SAP CC Core Tool user interface. Consult the primary help of this user interface to know how to configure this master data and all the included data objects.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="catalogEntry">
<xs:complexType>
<xs:sequence>
<xs:element ref="catalogEntry" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="owner" type="xs:string" use="required"/>
<xs:attribute name="ref" type="xs:string"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="CatalogEntryTypeType"/>
<xs:attribute name="code" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="CatalogEntryTypeType">
<xs:union memberTypes="DirectoryEntryType ObjectType"/>
</xs:simpleType>
<xs:simpleType name="ObjectType">
<xs:restriction base="xs:string">
<xs:enumeration value="product"/>
<xs:enumeration value="chargeableItemClass"/>
<xs:enumeration value="chargedItemClass"/>
<xs:enumeration value="pricingMacro"/>
<xs:enumeration value="translationTable"/>
<xs:enumeration value="tierTable"/>
<xs:enumeration value="mappingTableClass"/>
<xs:enumeration value="mappingTable"/>
<xs:enumeration value="rangeTableClass"/>
<xs:enumeration value="rangeTable"/>
<xs:enumeration value="offer"/>
<xs:enumeration value="chargeComponent"/>
<xs:enumeration value="chargePlan"/>
<xs:enumeration value="refillItemClass"/>
<xs:enumeration value="refillLogic"/>
<xs:enumeration value="refillRecordClass"/>
<xs:enumeration value="refillPlan"/>
<xs:enumeration value="chargedItemAggregationPolicy"/>
<xs:enumeration value="allowanceEventClass"/>
<xs:enumeration value="allowanceLogic"/>
<xs:enumeration value="allowancePlan"/>
<xs:enumeration value="monitoringPlan"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DirectoryEntryType">
<xs:restriction base="xs:string">
<xs:enumeration value="user_directory"/> <!-- custom defined -->
<xs:enumeration value="system_directory"/>
<xs:enumeration value="root_directory"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLOWANCE_EVENT_CLASS_NODE |
static java.lang.String |
ALLOWANCE_LOGIC_NODE |
static java.lang.String |
ALLOWANCE_PLAN_NODE |
static java.lang.String |
CHARGE_COMPONENT_NODE
Java constant for a predefined catalog node that is dedicated to the reusable charges in price plan
|
static java.lang.String |
CHARGE_PLAN_NODE |
static java.lang.String |
CHARGEABLE_ITEM_CLASS_NODE |
static java.lang.String |
CHARGED_ITEM_AGGREGATION_POLICY_NODE |
static java.lang.String |
CHARGED_ITEM_CLASS_NODE |
static java.lang.String |
MAPPING_TABLE_CLASS_NODE |
static java.lang.String |
MAPPING_TABLE_NODE |
static java.lang.String |
MONITORING_PLAN_NODE |
static java.lang.String |
OFFER_NODE
Java constant for a predefined catalog node that is dedicated to the
offers in master data of a service provider |
static java.lang.String |
PRICING_MACRO_NODE |
static java.lang.String |
PRODUCT_NODE |
static java.lang.String |
RANGE_TABLE_CLASS_NODE |
static java.lang.String |
RANGE_TABLE_NODE |
static java.lang.String |
REFILL_COMPONENT_NODE |
static java.lang.String |
REFILL_ITEM_CLASS_NODE |
static java.lang.String |
REFILL_PLAN_NODE |
static java.lang.String |
REFILL_RECORD_CLASS_NODE |
static java.lang.String |
ROOT_DIRECTORY |
static java.lang.String |
SYSTEM_DIRECTORY |
static java.lang.String |
TIER_TABLE_NODE |
static java.lang.String |
TRANSLATION_TABLE_NODE |
static java.lang.String |
USER_DIRECTORY |
| Constructor and Description |
|---|
CatalogEntryModel()
Builds an empty catalog entry.
|
| 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. |
CatalogEntryModel |
getChildAt(int i)
Gets the child at a position.
|
int |
getChildCount()
Gets the child count.
|
java.util.Vector<CatalogEntryModel> |
getChildren()
Gets all the childrens.
|
java.lang.String |
getEntryCode()
Gets the entry code.
|
java.lang.String |
getEntryName()
Gets the entry name.
|
java.lang.String |
getEntryRef()
Returns the reference of the catalog entry.
|
java.lang.String |
getEntryType()
Gets the entry type.
|
com.highdeal.pnr.hci.FirstClassObjectType |
getFirstClassObjectType()
Gets the
first class object type corresponding to the change list type. |
java.lang.String |
getOwner()
Gets the owner (service provider) of the catalog entry.
|
CatalogEntryModel |
getParent()
Gets the parent entry of the current entry.
|
void |
insert(CatalogEntryModel entry,
int i)
Inserts a child entry at a specified position.
|
boolean |
isLeaf() |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
remove(int i)
Removes a specified child entry.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setEntryCode(java.lang.String code)
Sets the entry code.
|
void |
setEntryName(java.lang.String name)
Sets the entry name.
|
void |
setEntryRef(java.lang.String ref)
Sets the entry reference.
|
void |
setEntryType(java.lang.String type)
Sets the entry type.
|
void |
setOwner(java.lang.String o)
Sets the owner of the catalog entry.
|
void |
setParent(CatalogEntryModel entry)
Sets the parent entry.
|
public static final java.lang.String USER_DIRECTORY
public static final java.lang.String SYSTEM_DIRECTORY
public static final java.lang.String ROOT_DIRECTORY
public static final java.lang.String CHARGED_ITEM_CLASS_NODE
public static final java.lang.String REFILL_RECORD_CLASS_NODE
public static final java.lang.String CHARGE_COMPONENT_NODE
public static final java.lang.String OFFER_NODE
offers in master data of a service providerpublic static final java.lang.String CHARGE_PLAN_NODE
public static final java.lang.String PRICING_MACRO_NODE
public static final java.lang.String PRODUCT_NODE
public static final java.lang.String CHARGEABLE_ITEM_CLASS_NODE
public static final java.lang.String REFILL_ITEM_CLASS_NODE
public static final java.lang.String TRANSLATION_TABLE_NODE
public static final java.lang.String TIER_TABLE_NODE
public static final java.lang.String REFILL_COMPONENT_NODE
public static final java.lang.String MAPPING_TABLE_CLASS_NODE
public static final java.lang.String MAPPING_TABLE_NODE
public static final java.lang.String RANGE_TABLE_CLASS_NODE
public static final java.lang.String RANGE_TABLE_NODE
public static final java.lang.String REFILL_PLAN_NODE
public static final java.lang.String CHARGED_ITEM_AGGREGATION_POLICY_NODE
public static final java.lang.String ALLOWANCE_PLAN_NODE
public static final java.lang.String ALLOWANCE_LOGIC_NODE
public static final java.lang.String ALLOWANCE_EVENT_CLASS_NODE
public static final java.lang.String MONITORING_PLAN_NODE
public java.lang.String getEntryRef()
public void setEntryRef(java.lang.String ref)
ref - The entry referencepublic java.lang.String getOwner()
public void setOwner(java.lang.String o)
o - The owner of the catalog entrypublic java.lang.String getEntryName()
public void setEntryName(java.lang.String name)
name - The entry namepublic java.lang.String getEntryType()
public void setEntryType(java.lang.String type)
type - The entry typepublic java.lang.String getEntryCode()
public void setEntryCode(java.lang.String code)
code - The entry codepublic CatalogEntryModel getChildAt(int i)
i - The child to be returnedpublic int getChildCount()
public java.util.Vector<CatalogEntryModel> getChildren()
public CatalogEntryModel getParent()
public void setParent(CatalogEntryModel entry)
entry - The parent entrypublic void insert(CatalogEntryModel entry, int i)
entry - The catalog entry to inserti - The position at which to insert the entrypublic void remove(int i)
i - The index of the child to removepublic boolean isLeaf()
public 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 void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic com.highdeal.pnr.hci.FirstClassObjectType getFirstClassObjectType()
first class object type corresponding to the change list type.first class object type corresponding to the change list type