com.highdeal.pnr.hci
Class OutPropertyUpdateComponentModel

java.lang.Object
  extended by com.highdeal.pnr.hci.RateComponentModel
      extended by com.highdeal.pnr.hci.OutPropertyUpdateComponentModel
All Implemented Interfaces:
XMLMarshallable, ContextualNode

public class OutPropertyUpdateComponentModel
extends RateComponentModel

This class represents a rate component that updates a Macro ouput property.


Field Summary
 
Fields inherited from class com.highdeal.pnr.hci.RateComponentModel
children, description, name, parent
 
Constructor Summary
OutPropertyUpdateComponentModel()
          Builds an empty OutPropertyUpdateComponentModel.
OutPropertyUpdateComponentModel(java.lang.String propertyName, java.lang.String outPropertyName, int outPropertyType, java.math.BigDecimal outDefaultNumber, java.util.Date outDefaultDate, java.lang.String outDefaultString)
          Builds an OutPropertyUpdateComponentModel.
 
Method Summary
 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 component is valid.
 java.util.Date getDateValue()
          Gets the date value.
 int getMaxChildCount()
          Gets the maximum child count (1).
 java.math.BigDecimal getNumberValue()
          Gets the number value.
 java.lang.String getOutPropertyName()
          Gets the out property name.
 int getOutPropertyType()
          Gets the out property type.
 java.lang.String getPropertyName()
          Gets the property name.
 java.lang.String getStringValue()
          Gets the string value.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setDateValue(java.util.Date d)
          Sets the date value.
 void setNumberValue(java.math.BigDecimal number)
          Sets the number value.
 void setOutPropertyName(java.lang.String name)
          Sets the out property name.
 void setOutPropertyType(int type)
          Sets the out property type.
 void setPropertyName(java.lang.String name)
          Sets the property name.
 void setStringValue(java.lang.String s)
          Sets the string value.
 
Methods inherited from class com.highdeal.pnr.hci.RateComponentModel
addCharacterData, getChildAt, getChildCount, getChildren, getContext, getDescription, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshallChildren, remove, removeChild, setAttributes, setChild, setChild, setChildren, setDescription, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutPropertyUpdateComponentModel

public OutPropertyUpdateComponentModel()
Builds an empty OutPropertyUpdateComponentModel.


OutPropertyUpdateComponentModel

public OutPropertyUpdateComponentModel(java.lang.String propertyName,
                                       java.lang.String outPropertyName,
                                       int outPropertyType,
                                       java.math.BigDecimal outDefaultNumber,
                                       java.util.Date outDefaultDate,
                                       java.lang.String outDefaultString)
Builds an OutPropertyUpdateComponentModel. See setOutPropertyType

Parameters:
propertyName - the source property name.
outPropertyName - the output property name.
outPropertyType - the output property type.
outDefaultNumber - the output default Number value.
outDefaultDate - the output default Date value.
outDefaultString - the output default String value.
Method Detail

setPropertyName

public void setPropertyName(java.lang.String name)
Sets the property name.

Parameters:
name - the property name.

getPropertyName

public java.lang.String getPropertyName()
Gets the property name.

Returns:
the property name.

setOutPropertyName

public void setOutPropertyName(java.lang.String name)
Sets the out property name.

Parameters:
name - the out property name.

getOutPropertyName

public java.lang.String getOutPropertyName()
Gets the out property name.

Returns:
the out property name.

setOutPropertyType

public void setOutPropertyType(int type)
Sets the out property type. Allowed values are :

Parameters:
type - the out property.

getOutPropertyType

public int getOutPropertyType()
Gets the out property type. Returned values are :

Returns:
the out property.

getNumberValue

public java.math.BigDecimal getNumberValue()
Gets the number value.

Returns:
the number value.

setNumberValue

public void setNumberValue(java.math.BigDecimal number)
Sets the number value.

Parameters:
number - the number value.

getStringValue

public java.lang.String getStringValue()
Gets the string value.

Returns:
the string value.

setStringValue

public void setStringValue(java.lang.String s)
Sets the string value.

Parameters:
s - the string value.

getDateValue

public java.util.Date getDateValue()
Gets the date value.

Returns:
the date value.

setDateValue

public void setDateValue(java.util.Date d)
Sets the date value.

Parameters:
d - the date value.

getMaxChildCount

public int getMaxChildCount()
Gets the maximum child count (1). Only one child is allowed for this component.

Specified by:
getMaxChildCount in class RateComponentModel
Returns:
the maximum child count.

checkValidity

public boolean checkValidity()
Returns true if the component is valid. Component is valid if all the following conditions are met:

Specified by:
checkValidity in class RateComponentModel
Returns:
true if the component is valid, false otherwise.

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Overrides:
addChild in class RateComponentModel
Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Overrides:
marshal in class RateComponentModel
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)