|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.run.xml.SimpleValue
com.tangosol.run.xml.SimpleElement
com.tangosol.run.xml.SimpleDocument
public class SimpleDocument
A simple implementation of the XmlElement interface. Protected methods are provided to support inheriting classes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tangosol.run.xml.SimpleElement |
|---|
SimpleElement.AttributeMap, SimpleElement.ElementIterator, SimpleElement.ElementList |
| Field Summary |
|---|
| Fields inherited from interface com.tangosol.run.xml.XmlValue |
|---|
TYPE_BINARY, TYPE_BOOLEAN, TYPE_DATE, TYPE_DATETIME, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_TIME |
| Constructor Summary | |
|---|---|
SimpleDocument()Construct an empty SimpleDocument. |
|
SimpleDocument(java.lang.String sName)Construct a SimpleDocument. |
|
SimpleDocument(java.lang.String sName, java.lang.String sDtdUri, java.lang.String sDtdName)Construct a SimpleDocument. |
|
| Method Summary | |
|---|---|
protected void |
checkMutable()Validates that the document is mutable, otherwise throws an UnsupportedOperationException. |
java.lang.Object |
clone()Creates and returns a copy of this XmlDocument. |
boolean |
equals(java.lang.Object o)Compare this XML document and all of its contained information with another XML document for equality. |
void |
fromXml(XmlElement xml)Deserialize the object from an XmlElement. |
java.lang.String |
getDocumentComment()Get the XML comment that appears outside of the root element. |
java.lang.String |
getDtdName()Get the public identifier of the DTD (DOCTYPE) for the document. |
java.lang.String |
getDtdUri()Get the URI of the DTD (DOCTYPE) for the document. |
java.lang.String |
getEncoding()Get the encoding string for the XML document. |
int |
hashCode()Provide a hash value for this XML document and all of its contained information. |
void |
readExternal(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(java.io.ObjectInput in)The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
void |
readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object. |
void |
setDocumentComment(java.lang.String sComment)Set the XML comment that appears outside of the root element. |
void |
setDtdName(java.lang.String sName)Set the public identifier of the DTD (DOCTYPE) for the document. |
void |
setDtdUri(java.lang.String sUri)Set the URI of the DTD (DOCTYPE) for the document. |
void |
setEncoding(java.lang.String sEncoding)Set the encoding string for the XML document. |
XmlElement |
toXml()Serialize the object into an XmlElement. |
void |
writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(java.io.ObjectOutput out)The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
void |
writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
void |
writeXml(java.io.PrintWriter out, boolean fPretty)Write the XML document, including an XML header and DOCTYPE if one exists. |
| Methods inherited from class com.tangosol.run.xml.SimpleElement |
|---|
addAttribute, addElement, ensureElement, findElement, getAbsolutePath, getAttribute, getAttributeMap, getComment, getElement, getElementList, getElements, getName, getQualifiedName, getRoot, getSafeAttribute, getSafeElement, instantiateAttribute, instantiateAttributeMap, instantiateElement, instantiateElementList, isNameMutable, setAttribute, setComment, setName, toString, toString, writeAttributes, writeChildren, writeComment, writeEmptyTag, writeEndTag, writeStartTag, writeValue |
| Methods inherited from class com.tangosol.run.xml.SimpleValue |
|---|
convert, ensureType, getBinary, getBinary, getBoolean, getBoolean, getDate, getDate, getDateTime, getDateTime, getDecimal, getDecimal, getDouble, getDouble, getInt, getInt, getInternalValue, getLong, getLong, getParent, getString, getString, getTime, getTime, getValue, isAttribute, isContent, isEmpty, isMutable, setAttribute, setBinary, setBoolean, setDate, setDateTime, setDecimal, setDouble, setInt, setInternalValue, setLong, setMutable, setParent, setString, setTime |
| Methods inherited from class com.tangosol.util.BitHelper |
|---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong |
| Methods inherited from interface com.tangosol.run.xml.XmlDocument |
|---|
toString |
| Methods inherited from interface com.tangosol.run.xml.XmlElement |
|---|
addAttribute, addElement, ensureElement, findElement, getAbsolutePath, getAttribute, getAttributeMap, getComment, getElement, getElementList, getElements, getName, getQualifiedName, getRoot, getSafeAttribute, getSafeElement, setAttribute, setComment, setName |
| Methods inherited from interface com.tangosol.run.xml.XmlValue |
|---|
getBinary, getBinary, getBoolean, getBoolean, getDate, getDate, getDateTime, getDateTime, getDecimal, getDecimal, getDouble, getDouble, getInt, getInt, getLong, getLong, getParent, getString, getString, getTime, getTime, getValue, isAttribute, isContent, isEmpty, isMutable, setBinary, setBoolean, setDate, setDateTime, setDecimal, setDouble, setInt, setLong, setParent, setString, setTime, writeValue |
| Constructor Detail |
|---|
public SimpleDocument()
public SimpleDocument(java.lang.String sName)
sName - the name of the root element
public SimpleDocument(java.lang.String sName,
java.lang.String sDtdUri,
java.lang.String sDtdName)
sName - the name of the root elementsDtdUri - the URI of the DTD (system identifier)sDtdName - the name of the DTD (public identifier); may be null| Method Detail |
|---|
public java.lang.String getDtdUri()
getDtdUri in interface XmlDocumentpublic void setDtdUri(java.lang.String sUri)
setDtdUri in interface XmlDocumentsUri - the document type URIpublic java.lang.String getDtdName()
getDtdName in interface XmlDocumentpublic void setDtdName(java.lang.String sName)
setDtdName in interface XmlDocumentsName - the DTD public identifierpublic java.lang.String getEncoding()
getEncoding in interface XmlDocumentpublic void setEncoding(java.lang.String sEncoding)
setEncoding in interface XmlDocumentsEncoding - the encoding that the document will usepublic java.lang.String getDocumentComment()
getDocumentComment in interface XmlDocumentpublic void setDocumentComment(java.lang.String sComment)
setDocumentComment in interface XmlDocumentsComment - the document comment
public void writeXml(java.io.PrintWriter out,
boolean fPretty)
writeXml in interface XmlDocumentwriteXml in interface XmlElementwriteXml in class SimpleElementout - a PrintWriter object to use to write tofPretty - true to specify that the output is intended to be as human readable as possiblepublic int hashCode()
hashCode in interface XmlDocumenthashCode in interface XmlElementhashCode in interface XmlValuehashCode in class SimpleElementpublic boolean equals(java.lang.Object o)
equals in interface XmlDocumentequals in interface XmlElementequals in interface XmlValueequals in class SimpleElementpublic java.lang.Object clone()
clone in interface XmlDocumentclone in interface XmlElementclone in interface XmlValueclone in class SimpleElement
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object tojava.io.IOException - Includes any I/O exceptions that may occur
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the objectjava.io.IOException - if I/O errors occurjava.lang.ClassNotFoundException - If the class for an object being restored cannot be found.
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface ExternalizableLitereadExternal in class SimpleElementin - the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException - if an I/O exception occursjava.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface ExternalizableLitewriteExternal in class SimpleElementout - the DataOutput stream to write the state of this object tojava.io.IOException - if an I/O exception occurs
public void readExternal(PofReader in)
throws java.io.IOException
readExternal in interface PortableObjectreadExternal in class SimpleElementin - the PofReader from which to read the object's statejava.io.IOException - if an I/O error occurs
public void writeExternal(PofWriter out)
throws java.io.IOException
writeExternal in interface PortableObjectwriteExternal in class SimpleElementout - the PofWriter to which to write the object's statejava.io.IOException - if an I/O error occurspublic XmlElement toXml()
toXml in interface XmlSerializabletoXml in class SimpleElementpublic void fromXml(XmlElement xml)
fromXml in interface XmlSerializablefromXml in class SimpleElementxml - an XmlElement that contains the serialized form of the objectjava.lang.UnsupportedOperationException - if this element is immutableprotected void checkMutable()
checkMutable in class SimpleElementjava.lang.UnsupportedOperationException
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||