public class SpecificModificationModel extends java.lang.Object implements XMLMarshallable
Java class allows describing a unitary modification that does not concern an attribute.
Like SpecificFormulaModel, each specific modification model is identified
by a code.
This class provides a support for parameters management and can aggregate nested filter models.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="specificModification">
<xs:complexType>
<xs:sequence>
<xs:element ref="ModificationModel" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="parameters" type="xs:string"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OBJECT_NAME |
| Constructor and Description |
|---|
SpecificModificationModel()
Empty contructor.
|
SpecificModificationModel(java.lang.String code)
Builds a "pre-coded" specific modification.
|
| 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 param list.
|
java.util.Properties |
extractParamAsProperties()
Extracts params for building a Properties structure
from a param 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 specific modification code.
|
ModificationModel |
getNestedModification()
Returns the optional nested modification model.
|
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 specific modification.
|
void |
setNestedModification(ModificationModel nested)
Sets the optional nested modification model.
|
void |
setParameters(java.lang.String params)
Sets the CSV String of params.
|
public static final java.lang.String OBJECT_NAME
public SpecificModificationModel()
public SpecificModificationModel(java.lang.String code)
code - The code of the specific modificationpublic java.lang.String getCode()
public void setCode(java.lang.String code)
null.code - The code of the specific modificationpublic java.lang.String getParameters()
public void setParameters(java.lang.String params)
params - The CSV list of optional parameterspublic ModificationModel getNestedModification()
public void setNestedModification(ModificationModel 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