if (!xsdType.getTargetNamespace().equals(schema.getTargetNamespace())) { return findType(xsdType);
if (!xsdType.getTargetNamespace().equals(schema.getTargetNamespace())) { return findType(xsdType);
/** * @param schema * @return */ public List getComplexTypes(XSDSchema schema, boolean showFromIncludes) { List allTypes = schema.getTypeDefinitions(); List list = new ArrayList(); for (Iterator i = allTypes.iterator(); i.hasNext();) { XSDTypeDefinition td = (XSDTypeDefinition) i.next(); if (td instanceof XSDComplexTypeDefinition) { XSDComplexTypeDefinition ct = (XSDComplexTypeDefinition) td; if (isSameNamespace(ct.getTargetNamespace(),schema.getTargetNamespace()) && (ct.getRootContainer() == schema || showFromIncludes)) { list.add(ct); } } } List adapterList = new ArrayList(); populateAdapterList(list, adapterList); return adapterList; }
if (baseCT.getTargetNamespace() != null && !baseCT.getTargetNamespace().equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001))
public AttributeDescriptor getDescriptor(final Name descriptorName, XSDComplexTypeDefinition typeDef, XSDElementDeclaration elemDecl, CoordinateReferenceSystem crs) { AttributeDescriptor descriptor = descriptorRegistry.get(descriptorName); if (descriptor == null) { try { if (elemDecl == null) { elemDecl = getElementDeclaration(descriptorName); } } catch (NoSuchElementException e) { String msg = "Type not found for " + descriptorName + " at type container " + (typeDef == null ? null : typeDef.getTargetNamespace() + "#" + typeDef.getName() + " at " + typeDef.getSchema().getSchemaLocation()); NoSuchElementException nse = new NoSuchElementException(msg); nse.initCause(e); throw nse; } descriptor = createAttributeDescriptor(typeDef, elemDecl, crs); LOGGER.finest("Registering attribute descriptor " + descriptor.getName()); register(descriptor); } return descriptor; }
else if (XSDConstants.isSchemaForSchemaNamespace(xsdComplexTypeDefinition.getTargetNamespace())) EClass result = (EClass)getBuiltInEClassifier(xsdComplexTypeDefinition.getTargetNamespace(), name); if (result != null) EClass eClass = (EClass)extendedMetaData.getType(xsdComplexTypeDefinition.getTargetNamespace(), xsdComplexTypeDefinition.getName()); if (eClass != null)
else if (XSDConstants.isSchemaForSchemaNamespace(xsdComplexTypeDefinition.getTargetNamespace())) EClass result = (EClass)getBuiltInEClassifier(xsdComplexTypeDefinition.getTargetNamespace(), name); if (result != null)