本文整理汇总了Java中com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar类的典型用法代码示例。如果您正苦于以下问题:Java DTDGrammar类的具体用法?Java DTDGrammar怎么用?Java DTDGrammar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DTDGrammar类属于com.sun.xml.internal.stream.dtd.nonvalidating包,在下文中一共展示了DTDGrammar类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getNotationDecls
import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; //导入依赖的package包/类
protected List getNotationDecls(){
if(fEventType == XMLStreamConstants.DTD){
if(fScanner.fDTDScanner == null) return null;
DTDGrammar grammar = ((XMLDTDScannerImpl)(fScanner.fDTDScanner)).getGrammar();
if(grammar == null) return null;
List notations = grammar.getNotationDecls();
Iterator it = notations.iterator();
ArrayList list = new ArrayList();
while(it.hasNext()){
XMLNotationDecl ni = (XMLNotationDecl)it.next();
if(ni!= null){
list.add(new NotationDeclarationImpl(ni));
}
}
return list;
}
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:XMLStreamReaderImpl.java
示例2: getNotationDecls
import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; //导入依赖的package包/类
protected List<NotationDeclaration> getNotationDecls() {
if (fEventType == XMLStreamConstants.DTD) {
if (fScanner.fDTDScanner == null) {
return null;
}
DTDGrammar grammar = ((XMLDTDScannerImpl) (fScanner.fDTDScanner)).getGrammar();
if (grammar == null) {
return null;
}
List<XMLNotationDecl> notations = grammar.getNotationDecls();
ArrayList<NotationDeclaration> list = new ArrayList<>();
for (XMLNotationDecl notation : notations) {
if (notation != null) {
list.add(new NotationDeclarationImpl(notation));
}
}
return list;
}
return null;
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:XMLStreamReaderImpl.java
示例3: reset
import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; //导入依赖的package包/类
public void reset(PropertyManager props) {
setPropertyManager(props);
super.reset(props);
init() ;
nonValidatingMode = true;
//Revisit : Create new grammar until we implement GrammarPool.
nvGrammarInfo = new DTDGrammar(fSymbolTable);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:XMLDTDScannerImpl.java
示例4: getGrammar
import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; //导入依赖的package包/类
public DTDGrammar getGrammar(){
return nvGrammarInfo;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:XMLDTDScannerImpl.java
示例5: DTDGrammarUtil
import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; //导入依赖的package包/类
public DTDGrammarUtil(DTDGrammar grammar, SymbolTable symbolTable) {
fDTDGrammar = grammar;
fSymbolTable = symbolTable;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DTDGrammarUtil.java
注:本文中的com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论