Package org.apache.xerces.xs

Examples of org.apache.xerces.xs.XSMultiValueFacet


     */
    private void getAssertsFromBaseTypes(XSSimpleType baseValidator) {
        XSObjectList multiValFacetsOfBaseType = baseValidator.getMultiValueFacets();
       
        for (int i = 0; i < multiValFacetsOfBaseType.getLength(); i++) {
            XSMultiValueFacet mvFacet = (XSMultiValueFacet) multiValFacetsOfBaseType.item(i);
            if (mvFacet.getFacetKind() == XSSimpleTypeDefinition.FACET_ASSERT) {
                // add asserts to the global Vector object
                Vector assertsToAdd = mvFacet.getAsserts();
                for (int j = 0; j < assertsToAdd.size(); j++) {
                   // add assertion to the list, only if it's already not present
                   if (!assertExists((XSAssertImpl)assertsToAdd.get(j))) {
                       baseAsserts.add(assertsToAdd.get(j));
                   }
View Full Code Here


               }
            }
            else if (baseValidator instanceof XSSimpleTypeDefinition) {
                XSObjectList facets = ((XSSimpleTypeDefinition)baseValidator).getMultiValueFacets();
                for (int i = 0; i < facets.getLength(); i++) {
                    XSMultiValueFacet facet = (XSMultiValueFacet) facets.item(i);
                    if (facet.getFacetKind() == XSSimpleTypeDefinition.FACET_ASSERT) {
                       Vector assertionFacets = facet.getAsserts();
                       for (int j = 0; j < assertionFacets.size(); j++) {
                          XSAssertImpl assertImpl = (XSAssertImpl) assertionFacets.get(j);
                          addAssertion(assertImpl);
                       }
                       break;
View Full Code Here

TOP

Related Classes of org.apache.xerces.xs.XSMultiValueFacet

Copyright © 2018 www.massapicom. 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.