当前位置: 首页>>代码示例>>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;未经允许,请勿转载。