本文整理汇总了Java中org.apache.xerces.xni.XMLDTDHandler类的典型用法代码示例。如果您正苦于以下问题:Java XMLDTDHandler类的具体用法?Java XMLDTDHandler怎么用?Java XMLDTDHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XMLDTDHandler类属于org.apache.xerces.xni包,在下文中一共展示了XMLDTDHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startConditional
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/**
* The start of a conditional section.
*
* @param type The type of the conditional section. This value will
* either be CONDITIONAL_INCLUDE or CONDITIONAL_IGNORE.
* @param augs Additional information that may include infoset
* augmentations.
*
* @throws XNIException Thrown by handler to signal an error.
*
* @see #CONDITIONAL_INCLUDE
* @see #CONDITIONAL_IGNORE
*/
public void startConditional(short type, Augmentations augs) throws XNIException {
// set state
fInDTDIgnore = type == XMLDTDHandler.CONDITIONAL_IGNORE;
// call handlers
if(fDTDGrammar != null)
fDTDGrammar.startConditional(type, augs);
if (fDTDHandler != null) {
fDTDHandler.startConditional(type, augs);
}
}
示例2: startConditional
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Start conditional section. */
public void startConditional(short type, Augmentations augs)
throws XNIException {
printIndent();
fOut.print("startConditional(");
fOut.print("type=");
switch (type) {
case XMLDTDHandler.CONDITIONAL_IGNORE: {
fOut.print("CONDITIONAL_IGNORE");
break;
}
case XMLDTDHandler.CONDITIONAL_INCLUDE: {
fOut.print("CONDITIONAL_INCLUDE");
break;
}
default: {
fOut.print("??? ("+type+')');
}
}
if (augs != null) {
fOut.print(',');
printAugmentations(augs);
}
fOut.println(')');
fOut.flush();
fIndent++;
}
示例3: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the registered DTD handler. */
public XMLDTDHandler getDTDHandler() {
return fDTDHandler;
}
示例4: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the registered DTD handler. */
public XMLDTDHandler getDTDHandler();
示例5: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Sets the DTD handler. */
public void setDTDHandler(XMLDTDHandler handler);
示例6: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the DTD handler. */
public XMLDTDHandler getDTDHandler();
示例7: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the registered DTD handler. */
public XMLDTDHandler getDTDHandler() {
return fDTDHandler;
}
示例8: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the registered DTD handler. */
public XMLDTDHandler getDTDHandler() {
return null;
}
示例9: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
public void setDTDHandler(XMLDTDHandler handler) {
fDTDHandler = handler;
}
示例10: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
public XMLDTDHandler getDTDHandler() {
return fDTDHandler;
}
示例11: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Sets the DTD handler. */
public void setDTDHandler(XMLDTDHandler handler) {
fDTDHandler = handler;
}
示例12: getDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/** Returns the DTD handler. */
public XMLDTDHandler getDTDHandler() {
return fDTDHandler;
}
示例13: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/**
* Sets the DTD handler.
*
* @param dtdHandler The DTD handler.
*/
public void setDTDHandler(XMLDTDHandler dtdHandler) {
fDTDHandler = dtdHandler;
}
示例14: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/**
* Sets the DTD handler.
*
* @param dtdHandler The DTD handler.
*/
public void setDTDHandler(XMLDTDHandler dtdHandler);
示例15: setDTDHandler
import org.apache.xerces.xni.XMLDTDHandler; //导入依赖的package包/类
/**
* Sets the DTD handler.
*
* @param dtdHandler The DTD handler.
*/
public void setDTDHandler(XMLDTDHandler dtdHandler) {
fDTDHandler = dtdHandler;
}