本文整理匯總了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;
}