|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.XMLObjectImpl
Base class for all compiled XML objects.
XMLObject
Fields inherited from interface org.enhydra.xml.xmlc.XMLObject |
XMLC_GENERATED_CLASS_FIELD_NAME, XMLC_SOURCE_FILE_FIELD_NAME |
Constructor Summary | |
protected |
XMLObjectImpl()
Constructor. |
Method Summary | |
Node |
adoptNode(Node source)
See org.w3c.dom.Document#adoptNode |
Node |
appendChild(Node newChild)
|
protected void |
cloneDeepCheck(boolean deep)
Check that cloneNode on an entire document is done with the deep option. |
abstract Node |
cloneNode(boolean deep)
Clone the entire document. |
short |
compareDocumentPosition(Node arg0)
|
Attr |
createAttribute(String qualifiedName)
|
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
|
CDATASection |
createCDATASection(String data)
|
Comment |
createComment(String data)
|
DocumentFragment |
createDocumentFragment()
|
Element |
createElement(String tagName)
|
Element |
createElementNS(String namespaceURI,
String qualifiedName)
|
EntityReference |
createEntityReference(String name)
|
ProcessingInstruction |
createProcessingInstruction(String target,
String data)
|
Text |
createTextNode(String data)
|
protected void |
doSetText(Element element,
String text)
Used internally to implement a setTextXXX() method. |
NamedNodeMap |
getAttributes()
|
String |
getBaseURI()
|
NodeList |
getChildNodes()
|
XMLObject |
getDelegate()
Get the delegate. |
DocumentType |
getDoctype()
|
Document |
getDocument()
Get the actual document object. |
Element |
getDocumentElement()
|
String |
getDocumentURI()
|
DOMConfiguration |
getDomConfig()
|
protected abstract XMLCDomFactory |
getDomFactory()
Get the XMLC DOM Factory associated with this document type and DOM implementation. |
Element |
getElementById(String elementId)
|
NodeList |
getElementsByTagName(String tagname)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
String |
getEncoding()
See org.w3c.dom.Document#getEncoding |
Object |
getFeature(String arg0,
String arg1)
|
Node |
getFirstChild()
|
DOMImplementation |
getImplementation()
|
String |
getInputEncoding()
|
Node |
getLastChild()
|
String |
getLocalName()
|
String |
getMIMEType()
Get the MIME type associated with the document, or null if none was associated. |
String |
getNamespaceURI()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Document |
getOwnerDocument()
|
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
boolean |
getStandalone()
See org.w3c.dom.Document#getStandalone |
boolean |
getStrictErrorChecking()
See org.w3c.dom.Document#getStrictErrorChecking |
String |
getTextContent()
|
Object |
getUserData(String arg0)
|
String |
getVersion()
See org.w3c.dom.Document#getVersion() |
String |
getXmlEncoding()
|
boolean |
getXmlStandalone()
|
String |
getXmlVersion()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
importNode(Node importedNode,
boolean deep)
|
void |
initFields()
Deprecated. Use syncAccessMethods() instead. |
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isDefaultNamespace(String arg0)
|
boolean |
isEqualNode(Node arg0)
|
boolean |
isSameNode(Node arg0)
|
boolean |
isSupported(String feature,
String version)
|
boolean |
isURLAttribute(Element element,
String attrName)
Determine if an attribute of an element can contain a URL. |
String |
lookupNamespaceURI(String arg0)
|
String |
lookupPrefix(String arg0)
|
void |
normalize()
|
void |
normalizeDocument()
|
Node |
removeChild(Node oldChild)
|
Node |
renameNode(Node arg0,
String arg1,
String arg2)
|
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
setDelegate(XMLObject delegate)
Set the delegate object. |
protected void |
setDocument(Document document,
String mimeType,
String encoding)
Set the DOM document associated with this object and optional encoding. |
void |
setDocumentURI(String arg0)
|
void |
setEncoding(String encoding)
See org.w3c.dom.Document#setEncoding |
void |
setNodeValue(String nodeValue)
|
void |
setPrefix(String prefix)
|
void |
setStandalone(boolean standalone)
See org.w3c.dom.Document#setStandalone |
void |
setStrictErrorChecking(boolean strictErrorChecking)
See org.w3c.dom.Document#setStrictErrorChecking |
void |
setTextContent(String arg0)
|
Object |
setUserData(String arg0,
Object arg1,
UserDataHandler arg2)
|
void |
setVersion(String version)
See org.w3c.dom.Document#setVersion |
void |
setXmlStandalone(boolean arg0)
|
void |
setXmlVersion(String arg0)
|
void |
syncAccessMethods()
Initialize the fields used by the generated access methods from the current state of the document. |
protected abstract void |
syncWithDocument(Node node)
Generated function to synchronize the fields used by the access methods. |
String |
toDocument()
Convert the document to a string representation of the document, that is a string containing XML. |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.enhydra.xml.xmlc.XMLObject |
buildDocument |
Constructor Detail |
protected XMLObjectImpl()
Method Detail |
protected void setDocument(Document document, String mimeType, String encoding)
protected abstract XMLCDomFactory getDomFactory()
public Document getDocument()
XMLObject
getDocument
in interface XMLObject
XMLObject.getDocument()
public String getMIMEType()
XMLObject
getMIMEType
in interface XMLObject
XMLObject.getMIMEType()
public void setDelegate(XMLObject delegate)
XMLObject
setDelegate
in interface XMLObject
XMLObject.setDelegate(org.enhydra.xml.xmlc.XMLObject)
public XMLObject getDelegate()
XMLObject
getDelegate
in interface XMLObject
XMLObject.getDelegate()
protected void cloneDeepCheck(boolean deep)
public abstract Node cloneNode(boolean deep)
cloneNode
in interface Node
Node.cloneNode(boolean)
public DocumentType getDoctype()
getDoctype
in interface Document
Document.getDoctype()
public DOMImplementation getImplementation()
getImplementation
in interface Document
Document.getImplementation()
public Element getDocumentElement()
getDocumentElement
in interface Document
Document.getDocumentElement()
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
Document.importNode(org.w3c.dom.Node, boolean)
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
Document.createElement(java.lang.String)
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS
in interface Document
Document.createElementNS(java.lang.String, java.lang.String)
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
Document.createDocumentFragment()
public Text createTextNode(String data)
createTextNode
in interface Document
Document.createTextNode(java.lang.String)
public Comment createComment(String data)
createComment
in interface Document
Document.createComment(java.lang.String)
public CDATASection createCDATASection(String data) throws DOMException
createCDATASection
in interface Document
Document.createCDATASection(java.lang.String)
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction
in interface Document
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public Attr createAttribute(String qualifiedName) throws DOMException
createAttribute
in interface Document
Document.createAttribute(java.lang.String)
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
Document.createAttributeNS(java.lang.String, java.lang.String)
public EntityReference createEntityReference(String name) throws DOMException
createEntityReference
in interface Document
Document.createEntityReference(java.lang.String)
public NodeList getElementsByTagName(String tagname)
getElementsByTagName
in interface Document
Document.getElementsByTagName(java.lang.String)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
public Element getElementById(String elementId)
getElementById
in interface Document
Document.getElementById(java.lang.String)
public String getEncoding()
getEncoding
in interface XMLObject
org.enhydra.xml.xmlc.XMLObject
DOMFormatter
,
OutputOptions
public void setEncoding(String encoding)
setEncoding
in interface XMLObject
public boolean getStandalone()
getStandalone
in interface XMLObject
public void setStandalone(boolean standalone)
setStandalone
in interface XMLObject
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface XMLObject
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface XMLObject
public String getVersion()
getVersion
in interface XMLObject
public void setVersion(String version)
setVersion
in interface XMLObject
public Node adoptNode(Node source) throws DOMException
adoptNode
in interface XMLObject
public String getNodeName()
getNodeName
in interface Node
Node.getNodeName()
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
Node.getNodeValue()
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
Node.setNodeValue(java.lang.String)
public short getNodeType()
getNodeType
in interface Node
Node.getNodeType()
public Node getParentNode()
getParentNode
in interface Node
Node.getParentNode()
public NodeList getChildNodes()
getChildNodes
in interface Node
Node.getChildNodes()
public Node getFirstChild()
getFirstChild
in interface Node
Node.getFirstChild()
public Node getLastChild()
getLastChild
in interface Node
Node.getLastChild()
public Node getPreviousSibling()
getPreviousSibling
in interface Node
Node.getPreviousSibling()
public Node getNextSibling()
getNextSibling
in interface Node
Node.getNextSibling()
public NamedNodeMap getAttributes()
getAttributes
in interface Node
Node.getAttributes()
public Document getOwnerDocument()
getOwnerDocument
in interface Node
Node.getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
Node.removeChild(org.w3c.dom.Node)
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
Node.appendChild(org.w3c.dom.Node)
public void normalize()
normalize
in interface Node
Node.normalize()
public boolean isSupported(String feature, String version)
isSupported
in interface Node
Node.isSupported(String, String)
public String getNamespaceURI()
getNamespaceURI
in interface Node
Node.getNamespaceURI()
public String getPrefix()
getPrefix
in interface Node
Node.getPrefix()
public void setPrefix(String prefix)
setPrefix
in interface Node
Node.setPrefix(java.lang.String)
public String getLocalName()
getLocalName
in interface Node
Node.getLocalName()
public boolean hasChildNodes()
hasChildNodes
in interface Node
Node.hasChildNodes()
public boolean hasAttributes()
hasAttributes
in interface Node
Node.hasAttributes()
public String toDocument()
XMLObject
DOMFormatter
class if
more options are required.toDocument
in interface XMLObject
XMLObject.toDocument()
protected abstract void syncWithDocument(Node node)
public void syncAccessMethods()
XMLObject
null
.syncAccessMethods
in interface XMLObject
XMLObject.syncAccessMethods()
public void initFields()
syncAccessMethods()
instead.
syncAccessMethods()
public boolean isURLAttribute(Element element, String attrName)
DocumentInfo
isURLAttribute
in interface DocumentInfo
DocumentInfo.isURLAttribute(org.w3c.dom.Element, java.lang.String)
protected final void doSetText(Element element, String text)
public String getDocumentURI()
getDocumentURI
in interface Document
public DOMConfiguration getDomConfig()
getDomConfig
in interface Document
public String getInputEncoding()
getInputEncoding
in interface Document
public String getXmlEncoding()
getXmlEncoding
in interface Document
public boolean getXmlStandalone()
getXmlStandalone
in interface Document
public String getXmlVersion()
getXmlVersion
in interface Document
public void normalizeDocument()
normalizeDocument
in interface Document
public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException
renameNode
in interface Document
public void setDocumentURI(String arg0)
setDocumentURI
in interface Document
public void setXmlStandalone(boolean arg0) throws DOMException
setXmlStandalone
in interface Document
public void setXmlVersion(String arg0) throws DOMException
setXmlVersion
in interface Document
public short compareDocumentPosition(Node arg0) throws DOMException
compareDocumentPosition
in interface Node
public String getBaseURI()
getBaseURI
in interface Node
public Object getFeature(String arg0, String arg1)
getFeature
in interface Node
public String getTextContent() throws DOMException
getTextContent
in interface Node
public Object getUserData(String arg0)
getUserData
in interface Node
public boolean isDefaultNamespace(String arg0)
isDefaultNamespace
in interface Node
public boolean isEqualNode(Node arg0)
isEqualNode
in interface Node
public boolean isSameNode(Node arg0)
isSameNode
in interface Node
public String lookupNamespaceURI(String arg0)
lookupNamespaceURI
in interface Node
public String lookupPrefix(String arg0)
lookupPrefix
in interface Node
public void setTextContent(String arg0) throws DOMException
setTextContent
in interface Node
public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)
setUserData
in interface Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |