Package org.apache.xerces.xs

Examples of org.apache.xerces.xs.XSTypeDefinition.derivedFrom()


      XSModel xsModel = (XSModel) i.next();
      // Retrieving the derived type definition
      XSTypeDefinition xsType = xsModel.getTypeDefinition(
        extType.getLocalPart(), extType.getNamespaceURI());
      // If it is found and derived from the base type, return true
      if (xsType != null && xsType.derivedFrom(type.getNamespaceURI(),
        type.getLocalPart(), XSConstants.DERIVATION_NONE))
      {
        return true;
      }
    }
View Full Code Here


            }
           
            // invoke the method recursively (traverse up the type hierarchy)
            XSTypeDefinition ancestorType = baseSchemaType.getBaseType();
            if (ancestorType != null && !(ancestorType.getName().equals(
                "anyType") || ancestorType.derivedFrom(Constants.NS_XMLSCHEMA,
                "anyAtomicType", XSConstants.DERIVATION_RESTRICTION))) {             
               addAssertsFromBaseTypes(ancestorType);
            }
        }
       
View Full Code Here

           
            // invoke the method recursively. go up the type hierarchy.
            XSTypeDefinition ancestorType = baseValidator.getBaseType();
            if (ancestorType != null &&
                           !(ancestorType.getName().equals("anyType") ||
                                ancestorType.derivedFrom(Constants.NS_XMLSCHEMA,
                                "anyAtomicType", XSConstants.DERIVATION_RESTRICTION))) {             
               addAssertsFromBaseTypes(ancestorType);
            }
        }
    } // end of method, getAssertsFromBaseTypes
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.