public class XmlDocumentImpl extends Object implements XmlDocument
| Constructor and Description |
|---|
XmlDocumentImpl(String version,
Boolean standalone,
String characterEncoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Object child) |
XmlComment |
addComment(String content) |
XmlDoctype |
addDoctype(String systemIdentifier,
String publicIdentifier)
Method addDoctype
|
XmlElement |
addDocumentElement(String name) |
XmlElement |
addDocumentElement(XmlNamespace namespace,
String name) |
XmlNotation |
addNotation(String name,
String systemIdentifier,
String publicIdentifier,
String declarationBaseUri)
Method addNotation
|
XmlProcessingInstruction |
addProcessingInstruction(String target,
String content) |
Iterable |
children()
An ordered list of child information items, in document order.
|
Object |
clone() |
XmlElement |
element(XmlNamespace n,
String name) |
XmlElement |
element(XmlNamespace namespace,
String name,
boolean create) |
String |
getBaseUri() |
String |
getCharacterEncodingScheme() |
XmlElement |
getDocumentElement() |
String |
getVersion() |
void |
insertChild(int pos,
Object child) |
boolean |
isAllDeclarationsProcessed() |
Boolean |
isStandalone() |
XmlComment |
newComment(String content) |
XmlDoctype |
newDoctype(String systemIdentifier,
String publicIdentifier) |
XmlProcessingInstruction |
newProcessingInstruction(String target,
String content) |
Iterable |
notations()
An unordered set of notation information items,
one for each notation declared in the DTD.
|
void |
removeAllChildren() |
void |
removeAllNotations()
Method removeAllNotations
|
void |
removeAllUnparsedEntities() |
XmlElement |
requiredElement(XmlNamespace n,
String name) |
void |
setCharacterEncodingScheme(String characterEncoding) |
void |
setDocumentElement(XmlElement rootElement) |
Iterable |
unparsedEntities()
An unordered set of unparsed entity information items,
one for each unparsed entity declared in the DTD.
|
public Object clone() throws CloneNotSupportedException
clone in interface XmlDocumentclone in class ObjectCloneNotSupportedExceptionpublic String getVersion()
getVersion in interface XmlDocumentpublic Boolean isStandalone()
isStandalone in interface XmlDocumentpublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface XmlDocumentpublic void setCharacterEncodingScheme(String characterEncoding)
setCharacterEncodingScheme in interface XmlDocumentpublic XmlProcessingInstruction newProcessingInstruction(String target, String content)
newProcessingInstruction in interface XmlDocumentpublic XmlProcessingInstruction addProcessingInstruction(String target, String content)
addProcessingInstruction in interface XmlDocumentpublic Iterable children()
children in interface XmlDocumentpublic void removeAllUnparsedEntities()
removeAllUnparsedEntities in interface XmlDocumentpublic void setDocumentElement(XmlElement rootElement)
setDocumentElement in interface XmlDocumentpublic XmlElement requiredElement(XmlNamespace n, String name)
requiredElement in interface XmlDocumentpublic XmlElement element(XmlNamespace n, String name)
element in interface XmlDocumentpublic XmlElement element(XmlNamespace namespace, String name, boolean create)
element in interface XmlDocumentpublic void insertChild(int pos,
Object child)
insertChild in interface XmlDocumentpublic XmlComment addComment(String content)
addComment in interface XmlDocumentpublic XmlDoctype newDoctype(String systemIdentifier, String publicIdentifier)
newDoctype in interface XmlDocumentpublic Iterable unparsedEntities()
unparsedEntities in interface XmlDocumentpublic void removeAllChildren()
removeAllChildren in interface XmlDocumentpublic XmlComment newComment(String content)
newComment in interface XmlDocumentpublic void removeAllNotations()
removeAllNotations in interface XmlDocumentpublic XmlDoctype addDoctype(String systemIdentifier, String publicIdentifier)
addDoctype in interface XmlDocumentpublic void addChild(Object child)
addChild in interface XmlDocumentpublic XmlNotation addNotation(String name, String systemIdentifier, String publicIdentifier, String declarationBaseUri)
addNotation in interface XmlDocumentpublic String getBaseUri()
getBaseUri in interface XmlDocumentpublic Iterable notations()
notations in interface XmlDocumentpublic XmlElement addDocumentElement(String name)
addDocumentElement in interface XmlDocumentpublic XmlElement addDocumentElement(XmlNamespace namespace, String name)
addDocumentElement in interface XmlDocumentpublic boolean isAllDeclarationsProcessed()
isAllDeclarationsProcessed in interface XmlDocumentpublic XmlElement getDocumentElement()
getDocumentElement in interface XmlDocumentCopyright © 2013. All Rights Reserved.