public class SubsReflectDetail extends java.lang.Object implements XMLMarshallable
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>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_TYPE |
static int |
DATE_TYPE |
static int |
NUMBER_TYPE |
static int |
STRING_TYPE |
| Constructor and Description |
|---|
SubsReflectDetail()
Constructs an empty subscription reflect detail.
|
SubsReflectDetail(java.lang.String name,
int type,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
Builds a complete
SubsReflectDetail. |
SubsReflectDetail(java.lang.String name,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
Builds a complete
SubsReflectDetail without type. |
| 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. |
java.lang.String |
getCaCode()
Returns the charge activation code of the detail.
|
java.lang.Long |
getCaOid()
Returns the charge activation id of the detail.
|
java.util.Date |
getDateValue()
Returns the value of the detail.
|
java.math.BigDecimal |
getDecimalValue()
Returns the value of the detail.
|
java.lang.String |
getName()
Returns the name of the detail.
|
java.lang.String |
getStringValue()
Returns the value of the detail.
|
int |
getType()
Returns the type of the detail.
|
java.lang.Object |
getValue()
Returns the value of the detail.
|
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 |
setCaCode(java.lang.String chargeCode)
Sets the charge activation code.
|
void |
setCaOid(java.lang.Long caOid)
Sets the charge activation id.
|
void |
setValue(java.lang.Object value)
Sets the value and its type.
|
public static final int DATE_TYPE
public static final int NUMBER_TYPE
public static final int STRING_TYPE
public static final int ACCESS_TYPE
public SubsReflectDetail()
public SubsReflectDetail(java.lang.String name,
int type,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
SubsReflectDetail.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 detailpublic SubsReflectDetail(java.lang.String name,
java.lang.Object value,
java.lang.String caCode,
java.lang.Long caOid)
SubsReflectDetail without type.
The detail type is determined by the instance type of value.name - the detail name.value - the detail valuecaCode - the charge activation code which owns the detailcaOid - the charge activation id which owns the detailpublic java.lang.String getName()
public void setCaCode(java.lang.String chargeCode)
chargeCode - the charge activation code of the detail.public java.lang.String getCaCode()
public java.lang.Long getCaOid()
public void setCaOid(java.lang.Long caOid)
caOid - the charge activation id.public java.lang.Object getValue()
public java.lang.String getStringValue()
public void setValue(java.lang.Object value)
value - the Object value.public java.util.Date getDateValue()
public java.math.BigDecimal getDecimalValue()
public int getType()
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 addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into