當前位置: 首頁>>代碼示例>>Java>>正文


Java DOMException.NOT_SUPPORTED_ERR屬性代碼示例

本文整理匯總了Java中org.w3c.dom.DOMException.NOT_SUPPORTED_ERR屬性的典型用法代碼示例。如果您正苦於以下問題:Java DOMException.NOT_SUPPORTED_ERR屬性的具體用法?Java DOMException.NOT_SUPPORTED_ERR怎麽用?Java DOMException.NOT_SUPPORTED_ERR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.w3c.dom.DOMException的用法示例。


在下文中一共展示了DOMException.NOT_SUPPORTED_ERR屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setIdAttributeNS

/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException always.
 */
public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean isId)
                             throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:12,代碼來源:IIOMetadataNode.java

示例2: setXmlVersion

/**
 * DOM Level 3 CR - Experimental.
 * version - An attribute specifying, as part of the XML declaration,
 * the version number of this document.
 */
public void setXmlVersion(String value) {
    if(value.equals("1.0") || value.equals("1.1")){
        //we need to change the flag value only --
        // when the version set is different than already set.
        if(!getXmlVersion().equals(value)){
            xmlVersionChanged = true ;
            //change the normalization value back to false
            isNormalized(false);
            version = value;
        }
    }
    else{
        //NOT_SUPPORTED_ERR: Raised if the vesion is set to a value that is not supported by
        //this document
        //we dont support any other XML version
        String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);

    }
    if((getXmlVersion()).equals("1.1")){
        xml11Version = true;
    }
    else{
        xml11Version = false;
    }
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:31,代碼來源:CoreDocumentImpl.java

示例3: setAttributeNode

public Attr setAttributeNode(Attr newAttr) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:3,代碼來源:DefaultElement.java

示例4: removeNamedItem

public Node removeNamedItem(String name) throws DOMException {
        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:3,代碼來源:NamedNodeMapImpl.java

示例5: insertBefore

public Node insertBefore(Node newChild, Node refChild) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:3,代碼來源:DefaultNode.java

示例6: setIdAttribute

public void setIdAttribute(String name, boolean makeId) throws DOMException{
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:3,代碼來源:DefaultElement.java

示例7: createElement

public Element createElement(String tagName) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:3,代碼來源:DefaultDocument.java

示例8: replaceChild

public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:3,代碼來源:DefaultNode.java

示例9: getWholeText

public String getWholeText(){
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:3,代碼來源:DefaultText.java

示例10: compareDocumentPosition

/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public short compareDocumentPosition(Node other)
                                     throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
開發者ID:lambdalab-mirror,項目名稱:jdk8u-jdk,代碼行數:10,代碼來源:IIOMetadataNode.java

示例11: removeNamedItemNS

public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException {
        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:3,代碼來源:NamedNodeMapImpl.java

示例12: normalize

/** @see org.w3c.dom.Element */
@Override
public final void normalize()
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:6,代碼來源:DTMNodeProxy.java

示例13: createEntityReference

/**
 *
 * @param name
 *
 *
 *
 * @throws DOMException
 * @see org.w3c.dom.Document
 */
@Override
public final EntityReference createEntityReference(String name)
  throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:15,代碼來源:DTMNodeProxy.java

示例14: replaceData

/**
 *
 * @param offset
 * @param count
 * @param arg
 *
 * @throws DOMException
 * @see org.w3c.dom.CharacterData
 */
@Override
public final void replaceData(int offset, int count, String arg)
  throws DOMException
{
  throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:15,代碼來源:DTMNodeProxy.java

示例15: lookupPrefix

/**
 * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 * and will throw a {@code DOMException}.
 * @throws DOMException - always.
 */
public String lookupPrefix(String namespaceURI) throws DOMException {
    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                           "Method not supported");
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:9,代碼來源:IIOMetadataNode.java


注:本文中的org.w3c.dom.DOMException.NOT_SUPPORTED_ERR屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。