public abstract class RateModel extends java.lang.Object implements ContextualNode, IXMLMarshallable
| Constructor and Description |
|---|
RateModel() |
| 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. |
boolean |
checkValidity()
Returns true if the rate is valid.
|
java.lang.String |
getDescription()
Gets the description of the rate.
|
java.lang.String |
getName()
Gets the name of the rate.
|
ContextualNode |
getParent()
Gets the parent node.
|
RateComponentModel |
getRateComponent()
Gets the contained rate component.
|
RatingContextDescription |
inheritedContext()
Gets the inherited context.
|
void |
marshal(XMLOutputter output)
Deprecated.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
remove()
Removes the contained rate component.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDescription(java.lang.String description)
Sets the description of the rate.
|
void |
setName(java.lang.String name)
Sets the name of the rate.
|
void |
setParent(ContextualNode node)
Sets the parent.
|
void |
setRateComponent(RateComponentModel rateComponent)
Sets the contained rate component.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the rate.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of the rate.public RateComponentModel getRateComponent()
public void setRateComponent(RateComponentModel rateComponent)
rateComponent - the contained rate component.public void remove()
setRateComponent(null).)public void setParent(ContextualNode node)
setParent in interface ContextualNodenode - the parent.public ContextualNode getParent()
public RatingContextDescription inheritedContext()
inheritedContext in interface ContextualNodepublic boolean checkValidity()
public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic 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 added@Deprecated public void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface IXMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects into