Examples of addXSObject()


Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

        XSComplexTypeDefinition complexTypeDef = (XSComplexTypeDefinition) typeDef;

        XSObjectList primaryAssertions = complexTypeDef.getAssertions();
        if (primaryAssertions.getLength() > 0) {
            for (int i = 0; i < primaryAssertions.getLength(); i++) {
                complexTypeAsserts.addXSObject((XSAssert) primaryAssertions.get(i));
            }
        }

        // add assertion facets from "complexType -> simpleContent -> restriction"
        XSSimpleTypeDefinition simpleContentType = complexTypeDef.getSimpleType();
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                XSMultiValueFacet facet = (XSMultiValueFacet) complexTypeFacets.item(i);
                if (facet.getFacetKind() == XSSimpleTypeDefinition.FACET_ASSERT) {
                    Vector simpleContentAsserts = facet.getAsserts();
                    for (int simpleAssertIdx = 0; simpleAssertIdx < simpleContentAsserts.size(); simpleAssertIdx++) {
                        XSAssert simpleContentAssert = (XSAssert) simpleContentAsserts.get(simpleAssertIdx);
                        complexTypeAsserts.addXSObject(simpleContentAssert);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                    if (assertImpl != null) {
                        assertImpl.setTypeDefinition(attrType);
                        assertImpl.setVariety(attrTypeVariety);
                        assertImpl.setAttrName(attributes.getLocalName(attrIndx));
                        assertImpl.setAttrValue(attributes.getValue(attrIndx));
                        attrAssertList.addXSObject(assertImpl);
                    }
                }

                // iterate all the schema facets for attributes having the simpleType variety "atomic | list", and
                // accumulate assertions from them.
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                        for (int j = 0; j < attrAsserts.size(); j++) {
                            XSAssertImpl attrAssert = (XSAssertImpl) attrAsserts.elementAt(j);
                            attrAssert.setAttrName(attributes.getLocalName(attrIndx));
                            attrAssert.setAttrValue(attributes.getValue(attrIndx));
                            attrAssert.setVariety(attrTypeVariety);                               
                            attrAssertList.addXSObject(attrAssert);   
                        }
                        // break from the for loop
                        break;
                    }
                }               
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                        DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) {
                    // traverse annotation if any
                    if (patternAnnotations == null){
                        patternAnnotations = new XSObjectListImpl();
                    }
                    patternAnnotations.addXSObject(traverseAnnotationDecl(child, attrs, false, schemaDoc));
                    child = DOMUtil.getNextSiblingElement(child);
                }
                else {
                    String text = DOMUtil.getSyntheticAnnotation(content);
                    if (text != null) {
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                    String text = DOMUtil.getSyntheticAnnotation(content);
                    if (text != null) {
                        if (patternAnnotations == null){
                            patternAnnotations = new XSObjectListImpl();
                        }
                        patternAnnotations.addXSObject(traverseSyntheticAnnotation(content, text, attrs, false, schemaDoc));
                    }
                }
                if (child !=null) {
                    reportSchemaError("s4s-elt-must-match.1", new Object[]{"pattern", "(annotation?)", DOMUtil.getLocalName(child)}, child);
                }
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                applyStep(step);
            }
        }
        XSObjectListImpl resultComps = new XSObjectListImpl();
        for (int i = 0, n = result.size(); i < n; ++i) {
            resultComps.addXSObject((XSObject)result.get(i));
        }
        return resultComps;
    }

    private void addElidedComponents(XSObject sourceComponent) {
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

          XSComplexTypeDefinition complexTypeDef = (XSComplexTypeDefinition) typeDef;
         
          XSObjectList complexTypeAsserts = complexTypeDef.getAssertions();
          if (complexTypeAsserts.getLength() > 0) {
            for (int i = 0; i < complexTypeAsserts.getLength(); i++) {
               assertions.addXSObject((XSAssert)complexTypeAsserts.get(i));
            }
          }
         
          // add assertion facets, from "complexType -> simpleContent -> restriction"
          XSSimpleTypeDefinition simpleTypeDef = complexTypeDef.getSimpleType();
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                 Vector simpleContentAsserts = facet.getAsserts();
                 for (int simpleAssertIdx = 0; simpleAssertIdx <
                              simpleContentAsserts.size(); simpleAssertIdx++) {
                    XSAssert simpleContentAssert = (XSAssert)
                                         simpleContentAsserts.get(simpleAssertIdx);
                    assertions.addXSObject(simpleContentAssert);
                 }
              }
            }
          }
View Full Code Here

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl.addXSObject()

                       Vector attrAsserts = facet.getAsserts();
                       for (int j = 0; j < attrAsserts.size(); j++) {
                         XSAssertImpl attrAssert = (XSAssertImpl) attrAsserts.elementAt(j);
                         attrAssert.setAttrName(attributes.getLocalName(attrIndx));
                         attrAssert.setAttrValue(attributes.getValue(attrIndx));
                         assertions.addXSObject(attrAssert);   
                       }                       
                       break;
                    }
                 }
              }
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.