Lines Matching defs:ancestorNS

229     public boolean derivedFrom(String ancestorNS, String ancestorName, short derivationMethod) {
234 if (ancestorNS != null &&
235 ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) &&
243 ((ancestorNS == null && type.getNamespace() == null) ||
244 (ancestorNS != null && ancestorNS.equals(type.getNamespace())))) && // compare with ancestor
259 * @param ancestorNS
269 public boolean isDOMDerivedFrom(String ancestorNS, String ancestorName,
276 if (ancestorNS != null
277 && ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
286 if (isDerivedByRestriction(ancestorNS, ancestorName,
294 if (isDerivedByExtension(ancestorNS, ancestorName,
305 if (ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
314 return ((XSSimpleTypeDecl) fBaseType).isDOMDerivedFrom(ancestorNS,
319 ancestorNS, ancestorName, derivationMethod);
331 return isDerivedByAny(ancestorNS, ancestorName, derivationMethod, this);
342 * @param ancestorNS
354 private boolean isDerivedByAny(String ancestorNS, String ancestorName,
362 && ((ancestorNS == null && type.getNamespace() == null)
363 || (ancestorNS != null && ancestorNS.equals(type.getNamespace())))) {
370 if (isDerivedByRestriction(ancestorNS, ancestorName,
373 } else if (!isDerivedByExtension(ancestorNS, ancestorName,
388 * @param ancestorNS
400 private boolean isDerivedByRestriction(String ancestorNS,
407 if (ancestorNS != null
408 && ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
416 && (ancestorNS != null && ancestorNS.equals(type.getNamespace()))
417 || ((type.getNamespace() == null && ancestorNS == null))) {
424 if (ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
428 return ((XSSimpleTypeDecl) type).isDOMDerivedFrom(ancestorNS,
450 * @param ancestorNS
462 private boolean isDerivedByExtension(String ancestorNS,
469 if (ancestorNS != null
470 && ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
478 && ((ancestorNS == null && type.getNamespace() == null)
479 || (ancestorNS != null && ancestorNS.equals(type.getNamespace())))) {
486 if (ancestorNS.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)
497 ancestorNS, ancestorName,
502 ancestorNS, ancestorName, derivationMethod);