本文整理汇总了Java中com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner类的典型用法代码示例。如果您正苦于以下问题:Java XMLDTDScanner类的具体用法?Java XMLDTDScanner怎么用?Java XMLDTDScanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLDTDScanner类属于com.sun.org.apache.xerces.internal.xni.parser包,在下文中一共展示了XMLDTDScanner类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setProperty
import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner; //导入依赖的package包/类
/**
* Sets the value of a property. This method is called by the component
* manager any time after reset when a property changes value.
* <p>
* <strong>Note:</strong> Components should silently ignore properties
* that do not affect the operation of the component.
*
* @param propertyId The property identifier.
* @param value The value of the property.
*
* @throws SAXNotRecognizedException The component should not throw
* this exception.
* @throws SAXNotSupportedException The component should not throw
* this exception.
*/
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {
super.setProperty(propertyId, value);
// Xerces properties
if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();
if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
fDTDScanner = (XMLDTDScanner)value;
}
if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
if (value != null) {
fNamespaceContext = (NamespaceContext)value;
}
}
return;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:40,代码来源:XMLDocumentScannerImpl.java
示例2: createDTDScanner
import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner; //导入依赖的package包/类
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
return new XMLDTDScannerImpl();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DTDConfiguration.java
注:本文中的com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论