public class SpecificFormulaModel extends java.lang.Object implements XMLMarshallable
Java class is used to specify specific search criteria in a search filter; these criteria are predefined
in SAP Convergent Charging.
Each predefined formula is identified by a code (String).
Note
This Java class provides a support of parameter handling and can
aggregate nested filters.
You cannot create new specific formula; you can only use the formula that are proposed by existing search filters. Refer to your specialized search filter for more information about these codes.
SearchFilterModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="specificFormula">
<xs:complexType>
<xs:sequence>
<xs:element ref="SearchFilter" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/> <!-- identification code of the specific formula -->
<xs:attribute name="parameters" type="xs:string"/> <!-- A CSV string that contains all parameters of the specific formula -->
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
SpecificFormulaModel()
Empty contructor.
|
SpecificFormulaModel(java.lang.String code)
INTERNAL USE ONLY - Builds a predefined specific formula.
|
| 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. |
void |
addParameter(java.lang.String param)
Adds a parameter to the parameter list.
|
java.util.Properties |
extractParamAsProperties()
Extracts parameters for building a Properties structure
from a parameter list like "param1 = value1, param2 = value2...".
|
java.util.Vector<java.lang.String> |
extractParameters()
Extracts parameters from the CSV parameters string representation.
|
java.lang.String |
getCode()
Returns the mandatory formula code.
|
SearchFilterModel |
getNestedFilter()
Returns the optional nested search filter.
|
java.lang.String |
getParameters()
Returns a CSV string of parameters.
|
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.
|
void |
setCode(java.lang.String code)
Sets the required code of the formula; Cannot be set to
null. |
void |
setNestedFilter(SearchFilterModel nested)
Sets the optional nested search filter.
|
void |
setParameters(java.lang.String params)
Sets the CSV String of parameters.
|
public SpecificFormulaModel()
public SpecificFormulaModel(java.lang.String code)
code - The expected code of the specific formulapublic java.lang.String getCode()
public void setCode(java.lang.String code)
null.code - The expected code of the specific formulapublic java.lang.String getParameters()
public void setParameters(java.lang.String params)
params - The CSV list of optional parameterspublic SearchFilterModel getNestedFilter()
public void setNestedFilter(SearchFilterModel nested)
public java.util.Vector<java.lang.String> extractParameters()
public void addParameter(java.lang.String param)
param - The string representation of the added parameterpublic java.util.Properties extractParamAsProperties()
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 into