本文整理汇总了Java中com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator类的典型用法代码示例。如果您正苦于以下问题:Java XSCMValidator类的具体用法?Java XSCMValidator怎么用?Java XSCMValidator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XSCMValidator类属于com.sun.org.apache.xerces.internal.impl.xs.models包,在下文中一共展示了XSCMValidator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getContentModel
import com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator; //导入依赖的package包/类
public synchronized XSCMValidator getContentModel(CMBuilder cmBuilder, boolean forUPA) {
if (fCMValidator == null) {
if (forUPA) {
if (fUPACMValidator == null) {
fUPACMValidator = cmBuilder.getContentModel(this, true);
if (fUPACMValidator != null && !fUPACMValidator.isCompactedForUPA()) {
fCMValidator = fUPACMValidator;
}
}
return fUPACMValidator;
}
else {
fCMValidator = cmBuilder.getContentModel(this, false);
}
}
return fCMValidator;
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:XSComplexTypeDecl.java
示例2: getContentModel
import com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator; //导入依赖的package包/类
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
// for complex type with empty or simple content,
// there is no content model validator
if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
return null;
}
if (fCMValidator == null)
synchronized (this) {
if (fCMValidator == null) {
fCMValidator = cmBuilder.getContentModel(this);
}
}
return fCMValidator;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:XSComplexTypeDecl.java
示例3: ensureStackCapacity
import com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator; //导入依赖的package包/类
/** ensure element stack capacity */
void ensureStackCapacity() {
if (fElementDepth == fElemDeclStack.length) {
int newSize = fElementDepth + INC_STACK_SIZE;
boolean[] newArrayB = new boolean[newSize];
System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
fSubElementStack = newArrayB;
XSElementDecl[] newArrayE = new XSElementDecl[newSize];
System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
fElemDeclStack = newArrayE;
newArrayB = new boolean[newSize];
System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
fNilStack = newArrayB;
XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
fNotationStack = newArrayN;
XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
fTypeStack = newArrayT;
XSCMValidator[] newArrayC = new XSCMValidator[newSize];
System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
fCMStack = newArrayC;
newArrayB = new boolean[newSize];
System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
fSawTextStack = newArrayB;
newArrayB = new boolean[newSize];
System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
fStringContent = newArrayB;
newArrayB = new boolean[newSize];
System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
fStrictAssessStack = newArrayB;
int[][] newArrayIA = new int[newSize][];
System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
fCMStateStack = newArrayIA;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:48,代码来源:XMLSchemaValidator.java
注:本文中的com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论