Examples of PSVIElementNSImpl


Examples of org.apache.xerces.dom.PSVIElementNSImpl

                .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());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

        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());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

                .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());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

                .getName());
        assertTypeName("itemListType", fRootNode.getTypeDefinition().getName());
       
        // this one is valid because it's the first one to define the unique
        // value
        PSVIElementNSImpl child = super.getChild(1);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        // invalid because it repeats the unique value
        child = super.getChild(2);
        assertValidity(ItemPSVI.VALIDITY_INVALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        // invalid because it repeats the key
        child = super.getChild(3);
        assertValidity(ItemPSVI.VALIDITY_INVALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        // valid because key references aren't figured out until the validation
        // root
        child = super.getChild(4);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("itemRef", child.getElementDeclaration().getName());
        assertTypeName("string", child.getTypeDefinition().getName());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

                .getValidationAttempted());
        assertElementName("itemList", fRootNode.getElementDeclaration()
                .getName());
        assertTypeName("itemListType", fRootNode.getTypeDefinition().getName());
       
        PSVIElementNSImpl child = super.getChild(1);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        child = super.getChild(2);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        child = super.getChild(3);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("item", child.getElementDeclaration().getName());
        assertTypeName("itemType", child.getTypeDefinition().getName());
       
        child = super.getChild(4);
        assertValidity(ItemPSVI.VALIDITY_VALID, child.getValidity());
        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, child
                .getValidationAttempted());
        assertElementName("itemRef", child.getElementDeclaration().getName());
        assertTypeName("string", child.getTypeDefinition().getName());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

        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());
    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

     *       org.apache.xerces.xni.Augmentations)
     */
    public void startElement(QName element, XMLAttributes attributes,
                                              Augmentations augs) {
        if (currentAssertDomNode == null) {
           currentAssertDomNode = new PSVIElementNSImpl((CoreDocumentImpl)
                                assertDocument, element.uri, element.rawname);
           assertDocument.appendChild(currentAssertDomNode);
        } else {
            Element elem = new PSVIElementNSImpl((CoreDocumentImpl)
                                assertDocument, element.uri, element.rawname);
            currentAssertDomNode.appendChild(elem);
            currentAssertDomNode = elem;
        }

View Full Code Here

Examples of org.apache.xerces.dom.PSVIElementNSImpl

           // is value of an attribute
           xsdTypeName = getXSDtypeOf$Value(attrType)
        }
        else {
          // is "simple type" value of an element
          PSVIElementNSImpl currentAssertPSVINode = (PSVIElementNSImpl)
                                                 currentAssertDomNode;
          XSTypeDefinition typeDef = currentAssertPSVINode.getTypeDefinition();
          if (typeDef instanceof XSComplexTypeDefinition) {
             XSComplexTypeDefinition cmplxTypeDef = (XSComplexTypeDefinition)
                                                                       typeDef;
             if (cmplxTypeDef.getSimpleType() != null) {
                xsdTypeName = getXSDtypeOf$Value(cmplxTypeDef.getSimpleType());  
             }
          }
          else {
             xsdTypeName = getXSDtypeOf$Value(currentAssertPSVINode.
                                               getTypeDefinition());
          }
        }
       
        Object psychoPathType = abstrPsychopathImpl.getPsychoPathTypeForXSDType
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.