本文整理汇总了Java中org.apache.xerces.xni.XMLDTDContentModelHandler类的典型用法代码示例。如果您正苦于以下问题:Java XMLDTDContentModelHandler类的具体用法?Java XMLDTDContentModelHandler怎么用?Java XMLDTDContentModelHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLDTDContentModelHandler类属于org.apache.xerces.xni包,在下文中一共展示了XMLDTDContentModelHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the registered DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler() {
return fDTDContentModelHandler;
}
示例2: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Sets the DTD content model handler. */
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler);
示例3: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler( );
示例4: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the registered DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler();
示例5: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the registered DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler() {
return fDTDContentModelHandler;
}
示例6: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the registered DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler() {
return null;
}
示例7: scanMixed
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* scan Mixed content model
* This assumes the content model has been parsed up to #PCDATA and
* can simply append to fStringBuffer.
* <pre>
* [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*'
* | '(' S? '#PCDATA' S? ')'
* </pre>
*
* @param elName The element type name this declaration is about.
*
* <strong>Note:</strong> Called after scanning past '(#PCDATA'.
*/
private final void scanMixed(String elName)
throws IOException, XNIException {
String childName = null;
fStringBuffer.append("#PCDATA");
// call handler
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.pcdata(null);
}
skipSeparator(false, !scanningInternalSubset());
while (fEntityScanner.skipChar('|')) {
fStringBuffer.append('|');
// call handler
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.separator(XMLDTDContentModelHandler.SEPARATOR_CHOICE,
null);
}
skipSeparator(false, !scanningInternalSubset());
childName = fEntityScanner.scanName();
if (childName == null) {
reportFatalError("MSG_ELEMENT_TYPE_REQUIRED_IN_MIXED_CONTENT",
new Object[]{elName});
}
fStringBuffer.append(childName);
// call handler
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.element(childName, null);
}
skipSeparator(false, !scanningInternalSubset());
}
// The following check must be done in a single call (as opposed to one
// for ')' and then one for '*') to guarantee that callbacks are
// properly nested. We do not want to trigger endEntity too early in
// case we cross the boundary of an entity between the two characters.
if (fEntityScanner.skipString(")*")) {
fStringBuffer.append(")*");
// call handler
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.endGroup(null);
fDTDContentModelHandler.occurrence(XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE,
null);
}
}
else if (childName != null) {
reportFatalError("MixedContentUnterminated",
new Object[]{elName});
}
else if (fEntityScanner.skipChar(')')){
fStringBuffer.append(')');
// call handler
if (fDTDContentModelHandler != null) {
fDTDContentModelHandler.endGroup(null);
}
}
else {
reportFatalError("MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN",
new Object[]{elName});
}
fMarkUpDepth--;
// we are done
}
示例8: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Sets the DTD content model handler. */
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
fDTDContentModelHandler = handler;
}
示例9: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/** Returns the DTD content model handler. */
public XMLDTDContentModelHandler getDTDContentModelHandler() {
return fDTDContentModelHandler;
}
示例10: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* Sets the DTD content model handler.
*
* @param handler The DTD content model handler.
*/
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
fDTDContentModelHandler = handler;
}
示例11: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* Sets the DTD content model handler.
*
* @param dtdContentModelHandler The DTD content model handler.
*/
public void setDTDContentModelHandler(XMLDTDContentModelHandler dtdContentModelHandler);
示例12: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* Sets the DTD content model handler.
*
* @param handler The DTD content model handler.
*/
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
fDTDContentModelHandler = handler;
}
示例13: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* Sets the DTD content model handler.
*
* @param handler The DTD content model handler.
*/
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
//no-op
}
示例14: setDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* setDTDContentModelHandler
*
* @param dtdContentModelHandler
*/
public void setDTDContentModelHandler(XMLDTDContentModelHandler
dtdContentModelHandler) {
fDTDContentModelHandler = dtdContentModelHandler;
}
示例15: getDTDContentModelHandler
import org.apache.xerces.xni.XMLDTDContentModelHandler; //导入依赖的package包/类
/**
* getDTDContentModelHandler
*
* @return XMLDTDContentModelHandler
*/
public XMLDTDContentModelHandler getDTDContentModelHandler() {
return fDTDContentModelHandler ;
}