public class XmlProcessingInstruction extends XmlNode
Represents an XML processing instruction.
TYPE_COMMENT, TYPE_ELEMENT, TYPE_PROCESSING_INSTRUCTION, TYPE_TEXT
Constructor and Description |
---|
XmlProcessingInstruction() |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(com.sap.cloud.server.odata.core.CharBuffer buffer)
|
void |
appendTo(com.sap.cloud.server.odata.core.CharBuffer buffer,
int indent)
Append the textual representation of this processing instruction to a buffer.
|
java.lang.String |
getContent()
Return processing instruction content (can be empty).
|
java.lang.String |
getTarget()
Return processing instruction target.
|
int |
getType()
Return XmlNode.TYPE_PROCESSING_INSTRUCTION.
|
void |
setContent(java.lang.String value)
Set processing instruction content (can be empty).
|
void |
setTarget(java.lang.String value)
Set processing instruction target.
|
java.lang.String |
toString()
Return the processing instruction.
|
public void appendTo(com.sap.cloud.server.odata.core.CharBuffer buffer)
buffer
- Buffer parameter.public void appendTo(com.sap.cloud.server.odata.core.CharBuffer buffer, int indent)
Append the textual representation of this processing instruction to a buffer.
buffer
- Buffer to receive textual representation.indent
- Indent level for indented pretty-printing. Use -1 to disable pretty-printing.public java.lang.String getContent()
Return processing instruction content (can be empty).
public java.lang.String getTarget()
Return processing instruction target.
public int getType()
Return XmlNode.TYPE_PROCESSING_INSTRUCTION.
public void setContent(java.lang.String value)
Set processing instruction content (can be empty).
value
- Processing instruction content (can be empty).public void setTarget(java.lang.String value)
Set processing instruction target.
value
- Processing instruction target.public java.lang.String toString()
Return the processing instruction.
toString
in class java.lang.Object