oracle.syndication.ice.payload
Class Ice_offer

java.lang.Object
  |
  +--oracle.xml.classgen.CGNode
        |
        +--oracle.syndication.ice.payload.Ice_offer

public class Ice_offer
extends oracle.xml.classgen.CGNode
implements Printable

The Node Class representing the ice-offer element within an ice-request or ice-response element in an ICE payload External interface for element in the payload Detailed explanation: --------------------- While the SAX parser parses the payload, will be the splitting point so an XMLDocument is going to be built by DOMParser instead. This approach is used so we can simply serialize the offer fragment and put it persistently into our database table which is managed by the subscription manager

Since:
9.0.0.0.0 Beta

Method Summary
TypeMethod
 Ice_payload getDocument()
          Get Document Class Ice_payload
 oracle.xml.parser.v2.DTD getDTDNode()
          Returns the Ice_payload DTD.
 ISODate getExpirationDate()
          If at the level, there is no value set for attribute "expiration-date", setExpirationDate will be called
 oracle.xml.parser.v2.XMLDocument getOfferDocument()
          Returns the offer in the form of an XML Document
 java.lang.String getOfferId()
          Unique offer id It is enforced to be a mandatory attribute for element
 java.util.List getPushRules()
          This allows for users of push rules to either get information about the rules or change the rules.
 java.lang.String getSubscriptionId()
          Get a newly created subscription id for the current offer which is modified by the subscription manager and return to
 void print(java.lang.String szSpace, java.io.Writer wrt)
          Prints the offer document.
 void setOfferId(java.lang.String szOfrId)
          Called by the offer builder to set the offer id as well as by the subscription manager.
 
Methods inherited from class oracle.xml.classgen.CGNode
setDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setOfferId

public void setOfferId(java.lang.String szOfrId)
Called by the offer builder to set the offer id as well as by the subscription manager. In the Subscription handler, this is called to set the offer item id for the offer.

getExpirationDate

public ISODate getExpirationDate()
                          throws OSSException
If at the level, there is no value set for attribute "expiration-date", setExpirationDate will be called
Returns:
in ISODate format

getSubscriptionId

public java.lang.String getSubscriptionId()
                                   throws OSSException
Get a newly created subscription id for the current offer which is modified by the subscription manager and return to

getOfferDocument

public oracle.xml.parser.v2.XMLDocument getOfferDocument()
Returns the offer in the form of an XML Document

getOfferId

public java.lang.String getOfferId()
Unique offer id It is enforced to be a mandatory attribute for element

getDTDNode

public oracle.xml.parser.v2.DTD getDTDNode()
Returns the Ice_payload DTD.
Returns:
the DTD
See Also:
DTD

getPushRules

public java.util.List getPushRules()
                            throws OSSException
This allows for users of push rules to either get information about the rules or change the rules.
Returns:
A list of org.w3c.dom.Element each corresponding to an "ice-delivery-rule" element within the offer document.

getDocument

public Ice_payload getDocument()
Get Document Class Ice_payload
Returns:
Ice_payload class

print

public void print(java.lang.String szSpace,
                  java.io.Writer wrt)
           throws java.io.IOException
Prints the offer document.
Specified by:
print in interface Printable