public class ICECode extends Object implements IICERequestElement, IICEResponseElement, IDOMStorable
Constructor and Description |
---|
ICECode(Attributes attributes)
Create a new ICE code response.
|
ICECode(Element element)
Create an ICECode object from a DOM-element.
|
ICECode(String messageID,
ICECodeEnum code)
Create a new ICE code response.
|
ICECode(String messageID,
int numeric,
String phrase)
Create a new ICE code response.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessageID()
Get the identifier of the message this ICE code refers to.
|
int |
getNumeric()
Get the numeric value of the ICE code.
|
String |
getPackageID()
Get the identifier of the package this ICE code refers to.
|
String |
getPayloadID()
Get the identifier of the payload this ICE code refers to.
|
String |
getPhrase()
Get the textual description of the ICE code.
|
void |
setPackageID(String packageID)
Set the identifier of the package this ICE code refers to.
|
void |
setPayloadID(String payloadID)
Set the identifier of the payload this ICE code refers to.
|
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 ICECode(String messageID, ICECodeEnum code)
messageID
- The id of the message/request this response refers to (might be null)code
- The codepublic ICECode(String messageID, int numeric, String phrase)
messageID
- The id of the message/request this response refers to (might be null)numeric
- The numeric value of the ice codephrase
- The textual description of the ice codepublic ICECode(Attributes attributes)
attributes
- The attributes of the ice-code tagpublic ICECode(Element element)
element
- The DOM-element containing the data of the ice codepublic void setPackageID(String packageID)
packageID
- The identifier of the package (might be null)public void setPayloadID(String payloadID)
payloadID
- The identifier of the payload (might be null)public String getMessageID()
public int getNumeric()
public String getPhrase()
public String getPackageID()
public String getPayloadID()
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