/** * Determine whether the definition contains xsd:any (directly or indirectly) */ private boolean isAny(XSType xsType) { if (xsType instanceof XSComplexType) { XSComplexType complexType = (XSComplexType) xsType; XSContentType contentType = complexType.getContentType(); if (contentType != null) { XSParticle particle = contentType.asParticle(); if (particle != null) { XSTerm term = particle.getTerm(); if (term != null) { return isAny(term); } } } } return false; }
/** * Determine whether the definition contains xsd:any (directly or indirectly) */ private boolean isAny(XSTerm term) { if (term.isWildcard()) { return true; } if (term.isModelGroup()) { XSParticle[] children = term.asModelGroup().getChildren(); if (children != null) { for (XSParticle childParticle : children) { XSTerm childTerm = childParticle.getTerm(); if (childTerm != null) { if (isAny(childTerm)) { return true; } } } } } return false; }
if (isAny(xsType)) { if (isPropertyContainer(elementDecl)) { XSAnnotation containerAnnotation = xsType.getAnnotation();
ctd.setIgnoredNamespaces(getIgnoredNamespaces(complexType)); if (isAny(complexType)) { ctd.setXsdAnyMarker(true);