Package com.highdeal.pnr.tif
Class SubsReflectDetail
java.lang.Object
com.highdeal.pnr.tif.SubsReflectDetail
- All Implemented Interfaces:
XMLMarshallable
This class is used to give more details about the subscription reflect.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subsReflectdetail">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="SubsReflectDetailType"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="caCode" type="xs:string"/>
<xs:attribute name="caOid" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="SubsReflectDetailType">
<xs:restriction base="xs:string">
<xs:enumeration value="decimal"/>
<xs:enumeration value="string"/>
<xs:enumeration value="date"/>
<xs:enumeration value="access"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty subscription reflect detail.SubsReflectDetail(String name, int type, Object value, String caCode, Long caOid) Builds a completeSubsReflectDetail.SubsReflectDetail(String name, Object value, String caCode, Long caOid) Builds a completeSubsReflectDetailwithout type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Returns the charge activation code of the detail.getCaOid()Returns the charge activation id of the detail.Returns the value of the detail.Returns the value of the detail.getName()Returns the name of the detail.Returns the value of the detail.intgetType()Returns the type of the detail.getValue()Returns the value of the detail.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the charge activation code.voidSets the charge activation id.voidSets the value and its type.
-
Field Details
-
DATE_TYPE
public static final int DATE_TYPE- See Also:
-
NUMBER_TYPE
public static final int NUMBER_TYPE- See Also:
-
STRING_TYPE
public static final int STRING_TYPE- See Also:
-
ACCESS_TYPE
public static final int ACCESS_TYPE- See Also:
-
-
Constructor Details
-
SubsReflectDetail
public SubsReflectDetail()Constructs an empty subscription reflect detail. -
SubsReflectDetail
Builds a completeSubsReflectDetail.- Parameters:
name- the detail name.type- the type of the detailvalue- the detail valuecaCode- the charge activation code which owns the detailcaOid- the charge activation id which owns the detail
-
SubsReflectDetail
Builds a completeSubsReflectDetailwithout type. The detail type is determined by the instance type of value.- Parameters:
name- the detail name.value- the detail valuecaCode- the charge activation code which owns the detailcaOid- the charge activation id which owns the detail
-
-
Method Details
-
getName
Returns the name of the detail.- Returns:
- the name of the detail.
-
setCaCode
Sets the charge activation code.- Parameters:
chargeCode- the charge activation code of the detail.
-
getCaCode
Returns the charge activation code of the detail.- Returns:
- the charge activation code of the detail.
-
getCaOid
Returns the charge activation id of the detail.- Returns:
- the charge activation id of the detail.
-
setCaOid
Sets the charge activation id.- Parameters:
caOid- the charge activation id.
-
getValue
Returns the value of the detail.- Returns:
- the value of the detail.
-
getStringValue
Returns the value of the detail. The result is null if the detail value is not a string.- Returns:
- the value of the detail.
-
setValue
Sets the value and its type.- Parameters:
value- theObjectvalue.
-
getDateValue
Returns the value of the detail. The result is null if the detail value is not a date.- Returns:
- the value of the detail.
-
getDecimalValue
Returns the value of the detail. The result is null if the detail value is not a decimal.- Returns:
- the value of the detail.
-
getType
public int getType()- Returns:
- the type of the detail.
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-