当前位置: 首页>>代码示例>>Java>>正文


Java Constants.NS_XMLSCHEMA属性代码示例

本文整理汇总了Java中com.sun.org.apache.xerces.internal.impl.Constants.NS_XMLSCHEMA属性的典型用法代码示例。如果您正苦于以下问题:Java Constants.NS_XMLSCHEMA属性的具体用法?Java Constants.NS_XMLSCHEMA怎么用?Java Constants.NS_XMLSCHEMA使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.org.apache.xerces.internal.impl.Constants的用法示例。


在下文中一共展示了Constants.NS_XMLSCHEMA属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validate

public final boolean validate(){
    // Do validation if all of the following are true:
    // 1. The JAXP Schema Language property is not XML Schema
    //    REVISIT: since only DTD and Schema are supported at this time,
    //             such checking is sufficient. but if more schema types
    //             are introduced in the future, we'll need to change it
    //             to something like
    //             (fSchemaType == null || fSchemaType == NS_XML_DTD)
    // 2. One of the following is true (validation features)
    // 2.1 Dynamic validation is off, and validation is on
    // 2.2 Dynamic validation is on, and DOCTYPE was seen
    // 3 Xerces schema validation feature is off, or DOCTYPE was seen.
    return (fSchemaType != Constants.NS_XMLSCHEMA) &&
           (!fDynamicValidation && fValidation ||
            fDynamicValidation && fSeenDoctypeDecl) &&
           (fDTDValidation || fSeenDoctypeDecl);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:XMLDTDValidator.java


注:本文中的com.sun.org.apache.xerces.internal.impl.Constants.NS_XMLSCHEMA属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。