|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xml.parser.v2.XMLNode
oracle.xml.parser.v2.CharData
oracle.xml.parser.v2.XMLPI
oracle.xml.parser.v2.XMLDeclPI
This class implements the XML Decl Processing Instruction.
ProcessingInstruction
, Serialized FormField Summary |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.validation.NodeEditVAL |
VAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF |
Constructor Summary | |
XMLDeclPI() Construct a default XMLDecl |
|
XMLDeclPI(java.lang.String version, java.lang.String encoding, java.lang.String standalone, boolean textDecl) Construct a XML Decl using the parameters |
Method Summary | |
java.lang.String |
getData() Returns the fully constructed string 'version=1.0 ....' |
java.lang.String |
getEncoding() Retrieves the character encoding information. |
java.lang.String |
getNodeValue() Gets the value of this node |
java.lang.String |
getStandalone() Retrieves the standalone information. |
java.lang.String |
getVersion() Retrieves the version information. |
void |
readExternal(java.io.ObjectInput inArg) This method reads the information written in the compressed stream by writeExternal method and restores the object correspondingly. |
void |
setEncoding(java.lang.String encoding) Sets the character encoding for output. |
boolean |
setStandalone(java.lang.String value) Sets the standalone information stored in the <? |
void |
setVersion(java.lang.String version) Sets the version number stored in the <? |
void |
writeExternal(java.io.ObjectOutput outArg) This method saves the state of the object by creating a binary compressed stream with information about this object. |
Methods inherited from class oracle.xml.parser.v2.XMLPI |
addText, appendData, canAppendData, canDeleteData, canInsertData, canReplaceData, canSetData, deleteData, getLength, getNodeName, getNodeType, getTarget, insertData, isWhitespaceOnly, nodeValidity, replaceData, reportSAXEvents, setData, setNodeValue, substringData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.ProcessingInstruction |
setData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.w3c.dom.validation.NodeEditVAL |
canAppendChild, canInsertBefore, canRemoveChild, canReplaceChild, getDefaultValue, getEnumeratedValues, nodeValidity |
Constructor Detail |
public XMLDeclPI()
public XMLDeclPI(java.lang.String version, java.lang.String encoding, java.lang.String standalone, boolean textDecl)
version
- - version of the XMLencoding
- - encoding used in the xml declarationstandalone
- - standalone value used in the declarationtextDecl
- - true => TextDecl, false => XML DeclMethod Detail |
public java.lang.String getData() throws DOMException
getData
in interface ProcessingInstruction
DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString
variable on the implementation platform.public java.lang.String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString
variable on the implementationpublic final java.lang.String getVersion()
public final void setVersion(java.lang.String version)
version
- The version information to set.public final java.lang.String getEncoding()
public final void setEncoding(java.lang.String encoding)
encoding
- The character encoding to setpublic final java.lang.String getStandalone()
public final boolean setStandalone(java.lang.String value)
value
- The attribute value ('yes' or 'no').public void writeExternal(java.io.ObjectOutput outArg) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class XMLPI
outArg
- is the ObjectOutput stream used to write the compressed stream.java.io.IOException
- is thrown when there is an exception while writing the compressed stream.public void readExternal(java.io.ObjectInput inArg) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class XMLPI
inArg
- The ObjectInput stream used for reading the compressed streamjava.io.IOException
- is thrown when there is an error in reading the input stream.java.lang.ClassNotFoundException
- is thrown when the class is not found
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |