• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PSVIElementNSImpl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl的典型用法代码示例。如果您正苦于以下问题:Java PSVIElementNSImpl类的具体用法?Java PSVIElementNSImpl怎么用?Java PSVIElementNSImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PSVIElementNSImpl类属于com.sun.org.apache.xerces.internal.dom包,在下文中一共展示了PSVIElementNSImpl类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: endElement

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
public void endElement(QName element, Augmentations augs)
        throws XNIException {
    final Node currentElement = fDOMValidatorHelper.getCurrentElement();
    // Write type information to this element
    if (augs != null && fDocumentImpl != null) {
        ElementPSVI elementPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);
        if (elementPSVI != null) {
            if (fStorePSVI) {
                ((PSVIElementNSImpl) currentElement).setPSVI(elementPSVI);
            }
            XSTypeDefinition type = elementPSVI.getMemberTypeDefinition();
            if (type == null) {
                type = elementPSVI.getTypeDefinition();
            }
            ((ElementNSImpl) currentElement).setType(type);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:DOMResultAugmentor.java


示例2: endElement

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
public void endElement(QName element, Augmentations augs)
        throws XNIException {
    // write type information to this element
    if (augs != null && fDocumentImpl != null) {
        ElementPSVI elementPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);
        if (elementPSVI != null) {
            if (fStorePSVI) {
                ((PSVIElementNSImpl)fCurrentNode).setPSVI(elementPSVI);
            }
            XSTypeDefinition type = elementPSVI.getMemberTypeDefinition();
            if (type == null) {
                type = elementPSVI.getTypeDefinition();
            }
            ((ElementNSImpl)fCurrentNode).setType(type);
        }
    }

    // adjust current node reference
    if (fCurrentNode == fFragmentRoot) {
        fCurrentNode = null;
        fFragmentRoot = null;
        return;
    }
    fCurrentNode = fCurrentNode.getParentNode();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:DOMResultBuilder.java


示例3: checkResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkResult() {
    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("X", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("anyType", child.getTypeDefinition().getName());
    assertTypeNamespace("http://www.w3.org/2001/XMLSchema",
            child.getTypeDefinition().getNamespace());

}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:20,代码来源:Xerces1128doc2Test.java


示例4: checkResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkResult() {
    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("anyType", child.getTypeDefinition().getName());
    assertTypeNamespace("http://www.w3.org/2001/XMLSchema",
            child.getTypeDefinition().getNamespace());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("X", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:Xerces1128doc1Test.java


示例5: checkFalseResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkFalseResult() {
    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
    assertTypeNamespaceNull(fRootNode.getTypeDefinition().getNamespace());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:IgnoreXSITypeTest_C_C.java


示例6: testDefault

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
@Test
public void testDefault() {
    try {
        reset();
        validateDocument();
    } catch (Exception e) {
        fail("Validation failed: " + e.getMessage());
    }

    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementName("A", fRootNode.getElementDeclaration().getName());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("B", child.getElementDeclaration().getName());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("D", child.getElementDeclaration().getName());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:27,代码来源:FixedAttrTest.java


示例7: checkTrueResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkTrueResult() {
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertAnyType(fRootNode.getTypeDefinition());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertAnyType(child.getTypeDefinition());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("A", child.getElementDeclaration().getName());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:IgnoreXSITypeTest_C_CA.java


示例8: checkFalseResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkFalseResult() {
    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
    assertTypeNamespaceNull(fRootNode.getTypeDefinition().getNamespace());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("A", child.getElementDeclaration().getName());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:25,代码来源:IgnoreXSITypeTest_C_CA.java


示例9: checkTrueResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkTrueResult() {
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_PARTIAL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertAnyType(fRootNode.getTypeDefinition());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("A", child.getElementDeclaration().getName());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_NONE, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertAnyType(child.getTypeDefinition());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:IgnoreXSITypeTest_C_AC.java


示例10: checkFalseResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkFalseResult() {
    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
    assertTypeNamespaceNull(fRootNode.getTypeDefinition().getNamespace());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("A", child.getElementDeclaration().getName());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());

    child = super.getChild(2);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:25,代码来源:IgnoreXSITypeTest_C_AC.java


示例11: checkResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkResult() {
    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementName("A", fRootNode.getElementDeclaration().getName());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
    assertTypeNamespaceNull(fRootNode.getTypeDefinition().getNamespace());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementName("A", child.getElementDeclaration().getName());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:IgnoreXSITypeTest_A_A.java


示例12: testSettingToDerivedType

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
@Test
public void testSettingToDerivedType() {
    try {
        reset();
        // this is required to make it a valid type Y node
        ((PSVIElementNSImpl) fRootNode).setAttributeNS(null, "attr", "typeY");
        fValidator.setProperty(ROOT_TYPE, typeY);
        validateDocument();
    } catch (Exception e) {
        fail("Validation failed: " + e.getMessage());
    }

    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:RootTypeDefinitionTest.java


示例13: testSettingToOtherSchemaType

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
@Test
public void testSettingToOtherSchemaType() {
    try {
        reset();
        ((PSVIElementNSImpl) fRootNode).setAttributeNS(SchemaSymbols.URI_XSI,
            SchemaSymbols.XSI_SCHEMALOCATION,
            "xslt.unittests otherNamespace.xsd");
        fValidator.setProperty(ROOT_TYPE, typeOtherNamespace);
        validateDocument();
    } catch (Exception e) {
        fail("Validation failed: " + e.getMessage());
    }

    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("W", fRootNode.getTypeDefinition().getName());
    assertTypeNamespace("xslt.unittests", fRootNode.getTypeDefinition()
            .getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:22,代码来源:RootTypeDefinitionTest.java


示例14: testSettingTypeAndXSIType

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
@Test
public void testSettingTypeAndXSIType() {
    try {
        reset();
        // this is required to make it a valid type Y node
        ((PSVIElementNSImpl) fRootNode).setAttributeNS(null, "attr", "typeY");
        ((PSVIElementNSImpl) fRootNode).setAttributeNS(SchemaSymbols.URI_XSI,
                SchemaSymbols.XSI_TYPE, "Y");
        fValidator.setProperty(ROOT_TYPE, typeX);
        validateDocument();
    } catch (Exception e) {
        fail("Validation failed: " + e.getMessage());
    }

    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:RootTypeDefinitionTest.java


示例15: testSettingTypeAndInvalidXSIType

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
@Test
public void testSettingTypeAndInvalidXSIType() {
    try {
        reset();
        ((PSVIElementNSImpl) fRootNode).setAttributeNS(SchemaSymbols.URI_XSI,
                SchemaSymbols.XSI_TYPE, "Z");
        fValidator.setProperty(ROOT_TYPE, typeX);
        validateDocument();
    } catch (Exception e) {
        fail("Validation failed: " + e.getMessage());
    }

    assertError(INVALID_DERIVATION_ERROR);
    assertValidity(ItemPSVI.VALIDITY_INVALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementNull(fRootNode.getElementDeclaration());
    assertTypeName("Z", fRootNode.getTypeDefinition().getName());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:20,代码来源:RootTypeDefinitionTest.java


示例16: checkResult

import com.sun.org.apache.xerces.internal.dom.PSVIElementNSImpl; //导入依赖的package包/类
private void checkResult() {
    assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
            .getValidationAttempted());
    assertElementName("A", fRootNode.getElementDeclaration().getName());
    assertTypeName("Y", fRootNode.getTypeDefinition().getName());
    assertTypeNamespaceNull(fRootNode.getTypeDefinition().getNamespace());

    PSVIElementNSImpl child = super.getChild(1);
    assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
    assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
            .getValidationAttempted());
    assertElementNull(child.getElementDeclaration());
    assertTypeName("Y", child.getTypeDefinition().getName());
    assertTypeNamespaceNull(child.getTypeDefinition().getNamespace());
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:IgnoreXSITypeTest_A_C.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IconicsLayoutInflater类代码示例发布时间:2022-05-23
下一篇:
Java ModelMessages类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap