/** @see org.geotools.feature.type.AbstractLazyAttributeTypeImpl#toString() */ @Override public String toString() { return "LazyComplexType: " + getName(); } }
/** * 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.geotools.feature.type.AbstractLazyAttributeTypeImpl#toString() */ @Override public String toString() { return "LazyComplexType: " + getName(); }
/** * 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; }