public class ICEOffer extends Object implements IICERequestElement, IICEElementHandler, IDOMStorable
ice-delivery-policy
,
ice-business-term* )
!ATTLIST ice-offer
offer-id CDATA #IMPLIED
constraints-hash CDATA #IMPLIED
constraints-hash-method CDATA #IMPLIED
constraints-url CDATA #IMPLIED
description CDATA #REQUIRED
expiration-date CDATA #IMPLIED
product-name CDATA #IMPLIED
subscription-id CDATA #IMPLIED
atomic-use (false | true) "false"
editable (false | true) "false"
ip-status CDATA #IMPLIED
rights-holder CDATA #IMPLIED
show-credit (true | false) "false"
usage-required (true | false) "false"
type (protocol | subscription) "subscription"
Copyright 2004 SAP AG
author Bodo Junglas - junglas@objectcode.de
version $Id: //kmgmt/km.shared.protocol/NW750EXT_13_COR/src/_ice/java/api/com/sapportals/wcm/protocol/ice/protocol/ICEOffer.java#1 $Modifier and Type | Field and Description |
---|---|
static String |
NEW_SUBSCRIPTION |
static String |
TAGNAME |
Constructor and Description |
---|
ICEOffer(Attributes attributes)
Create a new ICEOffer.
|
ICEOffer(Element element)
Create an ICEOffer object from a DOM-element.
|
ICEOffer(String offerID,
String description,
String subscriptionID,
ICEDeliveryPolicy deliveryPolicy)
Create a new ICEOffer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endElement(String name)
Receive notification of the end of an element.
|
ICEDeliveryPolicy |
getDeliveryPolicy()
Get the delivery policy of the offer.
|
String |
getDescription()
Get the description of the offer.
|
String |
getOfferID()
Get the if of the offer.
|
String |
getSubscriptionID()
Get the id of the subscription this offer belongs to.
|
IICECharacterHandler |
startElement(String name,
Attributes attributes,
PreparsedXML input)
Receive notification of the beginning of an element.
|
Node |
store(Document document)
Store the informations into a DOM.
|
void |
write(ContentHandler handler)
Write the XML representation of the ICE element to a SAX ContentHandler.
|
boolean |
writeChunk(ContentHandler handler)
Write a chunk of XML to a SAX ContentHandler.
|
public static final String TAGNAME
public static final String NEW_SUBSCRIPTION
public ICEOffer(String offerID, String description, String subscriptionID, ICEDeliveryPolicy deliveryPolicy)
offerID
- The id of the offerdescription
- The description of the offersubscriptionID
- The id of the subscription if applicabledeliveryPolicy
- The delivery policypublic ICEOffer(Attributes attributes)
attributes
- The attributes of the ice-offer tagpublic ICEOffer(Element element)
element
- A DOM-element containing the data of the offerpublic String getOfferID()
public String getDescription()
public String getSubscriptionID()
public ICEDeliveryPolicy getDeliveryPolicy()
public IICECharacterHandler startElement(String name, Attributes attributes, PreparsedXML input) throws SAXException
startElement
in interface IICEElementHandler
name
- The local name of the XML element (we don't need namespaces at this point)input
- The preparsed XML stream to get the element contentattributes
- AttributesSAXException
- on error (might wrap another exception)public boolean endElement(String name) throws SAXException
endElement
in interface IICEElementHandler
name
- The local name of the XML element (we don't need namespaces at this point)SAXException
- on error (might wrap another exception)public void write(ContentHandler handler) throws SAXException
write
in interface IICEElement
handler
- The SAX ContentHandler (usually an XMLSerializer)SAXException
- on error (might wrap another exception)public boolean writeChunk(ContentHandler handler) throws SAXException
writeChunk
in interface IICEElement
handler
- The SAX ContentHandler (usually a XMLSerializer)SAXException
- on error (might wrap another exception)public Node store(Document document)
store
in interface IDOMStorable
document
- The DOM document that should be used as factory for the DOM elementsAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice