/** * Get the System ID for the node. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. The base URI is used primarily for resolving * relative URIs within the content of the document. The system ID is * used primarily in conjunction with a line number, for identifying the * location of elements within the source XML, in particular when errors * are found. For a document node, the System ID represents the value of * the document-uri property as defined in the XDM data model. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known or not applicable. * @since 8.4 */ @Override public String getSystemId() { return treeInfo.getSystemId(); }
/** * Get the System ID for the node. Note this is not the * same as the base URI: the base URI can be modified by xml:base, but * the system ID cannot. The base URI is used primarily for resolving * relative URIs within the content of the document. The system ID is * used primarily in conjunction with a line number, for identifying the * location of elements within the source XML, in particular when errors * are found. For a document node, the System ID represents the value of * the document-uri property as defined in the XDM data model. * * @return the System Identifier of the entity in the source document * containing the node, or null if not known or not applicable. * @since 8.4 */ @Override public String getSystemId() { return treeInfo.getSystemId(); }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ public String getSystemId() { if (treeInfo instanceof GenericTreeInfo) { return ((GenericTreeInfo) treeInfo).getSystemId(); } else { throw new UnsupportedOperationException(); // must implement in subclass } }
/** * Get the System ID for the node. * * @return the System Identifier of the entity in the source document containing the node, * or null if not known. Note this is not the same as the base URI: the base URI can be * modified by xml:base, but the system ID cannot. */ public String getSystemId() { if (treeInfo instanceof GenericTreeInfo) { return ((GenericTreeInfo) treeInfo).getSystemId(); } else { throw new UnsupportedOperationException(); // must implement in subclass } }