このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XNode
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: xml :: dom ::

unpublished interface XNode
Usage 制限s
not published
Description
The 最初の/主要な dom datatype

The Node interface is the 最初の/主要な datatype for the entire 文書 反対する Model. It 代表するs a 選び出す/独身 node in the 文書 tree. While all 反対するs 器具/実施するing the Node interface expose methods for 取引,協定ing with children, not all 反対するs #器具/実施するing the Node interface may have children. For example, Text nodes may not have children, and 追加するing children to such nodes results in a DOMException 存在 raised.

The せいにするs nodeName, nodeValue and せいにするs are 含むd as a 機械装置 to get at node (警察などへの)密告,告訴(状) without casting 負かす/撃墜する to the 明確な/細部 derived interface. In 事例/患者s where there is no obvious mapping of these せいにするs for a 明確な/細部 nodeType (e.g., nodeValue for an Element or せいにするs for a Comment ), this returns null. 公式文書,認める that the 専攻するd interfaces may 含む/封じ込める 付加 and more convenient 機械装置s to get and 始める,決める the 関連した (警察などへの)密告,告訴(状).

The values of nodeName, nodeValue, and せいにするs 変化させる によれば the node type as follows:
Interface nodeName nodeValue せいにするs
Attr 指名する of せいにする value of せいにする null
CDATASection "#cdata-section" content of the CDATA Section null
Comment "#comment" content of the comment null
文書 "#文書" null null
DocumentFragment "#文書-fragment"null null
DocumentType 文書 type 指名する null null
Element tag 指名する null NamedNodeMap
(独立の)存在 (独立の)存在 指名する null null
EntityReference 指名する of (独立の)存在 言及/関連d null null
Notation notation 指名する null null
ProcessingInstruction entire content 除外するing the 的 null
Text "#text" content of the text node null

Since
OOo 2.0
See also
? (no identifier 設立する)
文書 反対する Model (DOM) Level 2 核心 Specification


Methods' 要約
appendChild 追加するs the node newChild to the end of the 名簿(に載せる)/表(にあげる) of children of this node.  
cloneNode Returns a duplicate of this node, i.e., serves as a generic copy 建設者 for nodes.  
getAttributes A NamedNodeMap 含む/封じ込めるing the せいにするs of this node (if it is an Element) or null さもなければ.  
getChildNodes A NodeList that 含む/封じ込めるs all children of this node.  
getFirstChild The first child of this node.  
getLastChild The last child of this node.  
getLocalName Returns the 地元の part of the qualified 指名する of this node.  
getNamespaceURI The namespace URI of this node, or null if it is 明示していない.  
getNextSibling The node すぐに に引き続いて this node.  
getNodeName The 指名する of this node, depending on its type; see the (米)棚上げする/(英)提議する above.  
getNodeType A code 代表するing the type of the underlying 反対する, as defined above.  
getNodeValue The value of this node, depending on its type; see the (米)棚上げする/(英)提議する above.  
getOwnerDocument The 文書 反対する associated with this node.  
getParentNode The parent of this node.  
getPrefix The namespace prefix of this node, or null if it is 明示していない.  
getPreviousSibling The node すぐに 先行する this node.  
hasAttributes Returns whether this node (if it is an element) has any せいにするs.  
hasChildNodes Returns whether this node has any children.  
insertBefore 挿入するs the node newChild before the 存在するing child node refChild.  
isSupported 実験(する)s whether the DOM 実施 器具/実施するs a 明確な/細部 feature and that feature is supported by this node.  
標準的にする/正常にする Puts all Text nodes in the 十分な depth of the sub-tree underneath this Node, 含むing せいにする nodes, into a "normal" form where only structure (e.g., elements, comments, 過程ing 指示/教授/教育s, CDATA sections, and (独立の)存在 言及/関連s) separates Text nodes, i.e., there are neither 隣接する Text nodes nor empty Text nodes.  
removeChild 除去するs the child node 示すd by oldChild from the 名簿(に載せる)/表(にあげる) of children, and returns it.  
replaceChild 取って代わるs the child node oldChild with newChild in the 名簿(に載せる)/表(にあげる) of children, and returns the oldChild node.  
setNodeValue The value of this node, depending on its type; see the (米)棚上げする/(英)提議する above.  
setPrefix The namespace prefix of this node, or null if it is 明示していない.  
Methods' 詳細(に述べる)s
appendChild
XNode
appendChild( [in] XNode  newChild )
raises( DOMException );

Description
追加するs the node newChild to the end of the 名簿(に載せる)/表(にあげる) of children of this node.
Parameter newChild
the new child node
Throws
com::sun::星/主役にする::xml::dom::DOMException

HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not 許す children of the type of the newChild node, or if the node to append is one of this node's ancestors or this node itself.

WRONG_DOCUMENT_ERR: Raised if newChild was created from a different 文書 than the one that created this node.

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the previous parent of the node 存在 挿入するd is readonly.

cloneNode
XNode
cloneNode( [in] boolean  深い );

Description
Returns a duplicate of this node, i.e., serves as a generic copy 建設者 for nodes.

Parameter 深い
true: clone node together with any children
誤った: clone without children
Returns
the cloned node
getAttributes
XNamedNodeMap
getAttributes();

Description
A NamedNodeMap 含む/封じ込めるing the せいにするs of this node (if it is an Element) or null さもなければ.
getChildNodes
XNodeList
getChildNodes();

Description
A NodeList that 含む/封じ込めるs all children of this node.
getFirstChild
XNode
getFirstChild();

Description
The first child of this node.
getLastChild
XNode
getLastChild();

Description
The last child of this node.
getLocalName
string
getLocalName();

Description
Returns the 地元の part of the qualified 指名する of this node.
getNamespaceURI
string
getNamespaceURI();

Description
The namespace URI of this node, or null if it is 明示していない.
getNextSibling
XNode
getNextSibling();

Description
The node すぐに に引き続いて this node.
getNodeName
string
getNodeName();

Description
The 指名する of this node, depending on its type; see the (米)棚上げする/(英)提議する above.
getNodeType
NodeType
getNodeType();

Description
A code 代表するing the type of the underlying 反対する, as defined above.
getNodeValue
string
getNodeValue()
raises( DOMException );

Description
The value of this node, depending on its type; see the (米)棚上げする/(英)提議する above.
Throws
com::sun::星/主役にする::xml::dom::DOMException

DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the 実施 壇・綱領・公約.

getOwnerDocument
XDocument
getOwnerDocument();

Description
The 文書 反対する associated with this node.
getParentNode
XNode
getParentNode();

Description
The parent of this node.
getPrefix
string
getPrefix();

Description
The namespace prefix of this node, or null if it is 明示していない.
getPreviousSibling
XNode
getPreviousSibling();

Description
The node すぐに 先行する this node.
hasAttributes
boolean
hasAttributes();

Description
Returns whether this node (if it is an element) has any せいにするs.
hasChildNodes
boolean
hasChildNodes();

Description
Returns whether this node has any children.
insertBefore
XNode
insertBefore( [in] XNode  newChild,
[in] XNode  refChild )
raises( DOMException );

Description
挿入するs the node newChild before the 存在するing child node refChild.
Throws
DOMException

HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not 許す children of the type of the newChild node, or if the node to 挿入する is one of this node's ancestors or this node itself.

WRONG_DOCUMENT_ERR: Raised if newChild was created from a different 文書 than the one that created this node.

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the parent of the node 存在 挿入するd is readonly.

NOT_FOUND_ERR: Raised if refChild is not a child of this node.

isSupported
boolean
isSupported( [in] string  feature,
[in] string  ver );

Description
実験(する)s whether the DOM 実施 器具/実施するs a 明確な/細部 feature and that feature is supported by this node.
標準的にする/正常にする
無効の
標準的にする/正常にする();

Description
Puts all Text nodes in the 十分な depth of the sub-tree underneath this Node, 含むing せいにする nodes, into a "normal" form where only structure (e.g., elements, comments, 過程ing 指示/教授/教育s, CDATA sections, and (独立の)存在 言及/関連s) separates Text nodes, i.e., there are neither 隣接する Text nodes nor empty Text nodes.
removeChild
XNode
removeChild( [in] XNode  oldChild )
raises( DOMException );

Description
除去するs the child node 示すd by oldChild from the 名簿(に載せる)/表(にあげる) of children, and returns it.
Throws
DOMException

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

NOT_FOUND_ERR: Raised if oldChild is not a child of this node.

replaceChild
XNode
replaceChild( [in] XNode  newChild,
[in] XNode  oldChild )
raises( DOMException );

Description
取って代わるs the child node oldChild with newChild in the 名簿(に載せる)/表(にあげる) of children, and returns the oldChild node.
Throws
DOMException

HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not 許す children of the type of the newChild node, or if the node to put in is one of this node's ancestors or this node itself.

WRONG_DOCUMENT_ERR: Raised if newChild was created from a different 文書 than the one that created this node.

NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of the new node is readonly.

NOT_FOUND_ERR: Raised if oldChild is not a child of this node.

setNodeValue
無効の
setNodeValue( [in] string  nodeValue )
raises( DOMException );

Description
The value of this node, depending on its type; see the (米)棚上げする/(英)提議する above.
Throws
DOMException

NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the 実施 壇・綱領・公約.

setPrefix
無効の
setPrefix( [in] string  prefix )
raises( DOMException );

Description
The namespace prefix of this node, or null if it is 明示していない.
Throws
DOMException

INVALID_CHARACTER_ERR: Raised if the 明示するd prefix 含む/封じ込めるs an 違法な character, per the XML 1.0 specification .

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

NAMESPACE_ERR: Raised if the 明示するd prefix is malformed per the Namespaces in XML specification, if the namespaceURI of this node is null, if the 明示するd prefix is "xml" and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace", if this node is an せいにする and the 明示するd prefix is "xmlns" and the namespaceURI of this node is different from " http://www.w3.org/2000/xmlns/", or if this node is an せいにする and the qualifiedName of this node is "xmlns" .

最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.