Class EntityRef
實體RefXML EntityReference
節點的表示法。
內容詳盡的說明文件
getName()
取得 EntityReference
節點的名稱。
回攻員
String
:EntityReference
節點的名稱
getPublicId()
取得 EntityReference
節點的公開 ID。如果節點沒有公開 ID,這個方法會傳回 null
。
回攻員
String
:EntityReference
節點的公開 ID,如果沒有則為 null
getSystemId()
取得 EntityReference
節點的系統 ID。如果節點沒有系統 ID,這個方法會傳回 null
。
回攻員
String
:EntityReference
節點的系統 ID,如果沒有則為 null
getValue()
取得節點的所有直接或間接子項節點的文字值,並依文件中顯示的順序排列。
回攻員
String
:節點的直接或間接子項的所有節點文字值
setName(name)
設定 EntityReference
節點的名稱。
參數
回攻員
EntityRef
:用於鏈結的 EntityReference
節點
setPublicId(id)
設定 EntityReference
節點的公開 ID。
參數
回攻員
EntityRef
:用於鏈結的 EntityReference
節點
setSystemId(id)
設定 EntityReference
節點的系統 ID。
參數
回攻員
EntityRef
:用於鏈結的 EntityReference
節點
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-03 (世界標準時間)。
[null,null,["上次更新時間:2024-12-03 (世界標準時間)。"],[[["`EntityRef` represents an XML `EntityReference` node, providing methods to interact with and modify it within a document."],["It offers methods to get and set the name, public ID, and system ID of the entity reference."],["You can detach the node from its parent, retrieve its text value, and access its parent element using provided methods."],["This class facilitates working with external entities referenced within an XML document using Apps Script's XML Service."]]],["The `EntityRef` represents an XML entity reference node. Key actions include: getting the node's name, parent element, public ID, system ID, and the text value of its children. It also allows detaching from its parent. You can set the node's name, public ID, and system ID. If the node doesn't have a parent, public ID, or system ID, methods will return null or have no effect.\n"]]