/** @see org.opengis.feature.type.ComplexType#getDescriptors() */ public Collection<PropertyDescriptor> getDescriptors() { requireDescriptors(); return descriptors; }
/** @see org.opengis.feature.type.ComplexType#getDescriptor(org.opengis.feature.type.Name) */ public PropertyDescriptor getDescriptor(Name name) { requireDescriptors(); return descriptorMap.get(name); }
/** * The namespace-ignorant version of {@link #getDescriptor(Name)}. Note that we honour the same * permissive algorithm as {@link ComplexTypeImpl}: (1) try no-namespace, (2) try * container-namespace, (2) search for match ignoring namespace. <b>*Shudder*</b> * * @see org.opengis.feature.type.ComplexType#getDescriptor(java.lang.String) * @deprecated Any code that uses this method instead of {@link #getDescriptor(Name)} is * inherently unsafe. */ @Deprecated public PropertyDescriptor getDescriptor(String name) { requireDescriptors(); PropertyDescriptor result = getDescriptor(new NameImpl(name)); if (result == null) { result = getDescriptor(new NameImpl(getName().getNamespaceURI(), name)); if (result == null) { for (PropertyDescriptor pd : descriptors) { if (pd.getName().getLocalPart().equals(name)) { return pd; } } } } return result; }
/** * @see org.opengis.feature.type.ComplexType#getDescriptors() */ public Collection<PropertyDescriptor> getDescriptors() { requireDescriptors(); return descriptors; }
/** * @see org.opengis.feature.type.ComplexType#getDescriptor(org.opengis.feature.type.Name) */ public PropertyDescriptor getDescriptor(Name name) { requireDescriptors(); return descriptorMap.get(name); }
/** * The namespace-ignorant version of {@link #getDescriptor(Name)}. Note that we honour the same * permissive algorithm as {@link ComplexTypeImpl}: (1) try no-namespace, (2) try * container-namespace, (2) search for match ignoring namespace. <b>*Shudder*</b> * * @see org.opengis.feature.type.ComplexType#getDescriptor(java.lang.String) * @deprecated Any code that uses this method instead of {@link #getDescriptor(Name)} is * inherently unsafe. */ @Deprecated public PropertyDescriptor getDescriptor(String name) { requireDescriptors(); PropertyDescriptor result = getDescriptor(new NameImpl(name)); if (result == null) { result = getDescriptor(new NameImpl(getName().getNamespaceURI(), name)); if (result == null) { for (PropertyDescriptor pd : descriptors) { if (pd.getName().getLocalPart().equals(name)) { return pd; } } } } return result; }