org.xml.sax.helpers.XMLFilterImpl.setProperty()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.xml.sax.helpers.XMLFilterImpl.setProperty()方法的一些代码示例,展示了XMLFilterImpl.setProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFilterImpl.setProperty()方法的具体详情如下:
包路径:org.xml.sax.helpers.XMLFilterImpl
类名称:XMLFilterImpl
方法名:setProperty

XMLFilterImpl.setProperty介绍

[英]Set the value of a property.

This will always fail if the parent is null.
[中]设置属性的值。
如果父项为空,则此操作将始终失败。

代码示例

代码示例来源:origin: igniterealtime/Openfire

@Override
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.dom4j/dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (String lexicalHandlerName : LEXICAL_HANDLER_NAMES) {
    if (lexicalHandlerName.equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: banq/jdonframework

/**
 * Set the value of a property.
 *
 * <p>This will always fail if the parent is null.</p>
 *
 * @param name The property name.
 * @param state The requested property value.
 * @exception org.xml.sax.SAXNotRecognizedException When the
 *            XMLReader does not recognize the property name.
 * @exception org.xml.sax.SAXNotSupportedException When the
 *            XMLReader recognizes the property name but
 *            cannot set the requested value.
 * @see org.xml.sax.XMLReader#setProperty
 */
public void setProperty (String name, Object value)
throws SAXNotRecognizedException, SAXNotSupportedException
{
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.wikimodel/org.wikimodel.wem

@Override
public void setProperty(String name, Object value)
  throws SAXNotRecognizedException,
  SAXNotSupportedException {
  // We save the lexical handler so that we can use it in the
  // implementation of the LexicalHandler interface methods.
  if (SAX_LEXICAL_HANDLER_PROPERTY.equals(name)) {
    this.lexicalHandler = (LexicalHandler) value;
  } else {
    super.setProperty(name, value);
  }
}

代码示例来源:origin: com.github.livesense/org.liveSense.service.xssRemove

/**
 * Processes property {@link #DEXSS_CHANGE_LISTENER} directly; other features are referred to the superclass.
 * @param name property name
 * @throws SAXNotRecognizedException, SAXNotSupportedException
 */
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
 if (name.equals(DEXSS_CHANGE_LISTENER))
  xssChangeListener = ((DeXSSChangeListener)value);
 else
  super.setProperty(name, value);
}

代码示例来源:origin: metafacture/metafacture-core

@Override
public void setProperty(final String name, final Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  if (LEXICAL_HANDLER_PROPERTY.equals(name)) {
    lexicalHandler = (LexicalHandler) value;
  } else {
    super.setProperty(name, value);
  }
}

代码示例来源:origin: maven/dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: dom4j/dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (String lexicalHandlerName : LEXICAL_HANDLER_NAMES) {
    if (lexicalHandlerName.equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: metafacture/metafacture-core

@Override
public void parse(final InputSource input) throws SAXException, IOException {
  if (lexicalHandler != null) {
    super.setProperty(LEXICAL_HANDLER_PROPERTY, this);
  }
  super.parse(input);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.igniterealtime.openfire/xmppserver

@Override
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.jenkins-ci.dom4j/dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: org.dom4j/com.springsource.org.dom4j

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) {
    if (LEXICAL_HANDLER_NAMES[i].equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

代码示例来源:origin: metafacture/metafacture-core

@Override
public void parse(final String systemId) throws SAXException, IOException {
  if (lexicalHandler != null) {
    super.setProperty(LEXICAL_HANDLER_PROPERTY, this);
  }
  super.parse(systemId);
}

代码示例来源:origin: apache/servicemix-bundles

public void setProperty(String name, Object value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
  for (String lexicalHandlerName : LEXICAL_HANDLER_NAMES) {
    if (lexicalHandlerName.equals(name)) {
      setLexicalHandler((LexicalHandler) value);
      return;
    }
  }
  super.setProperty(name, value);
}

相关文章

微信公众号

最新文章

更多