public static String findAttributeName ( SimpleFeatureType featureType , String field ) { List < AttributeDescriptor > attributeDescriptors = featureType . getAttributeDescriptors ( ) ; for ( AttributeDescriptor attributeDescriptor : attributeDescriptors ) { String name = attributeDescriptor . getLocalName ( ) ; if ( name . toLowerCase ( ) . equals ( field . toLowerCase ( ) ) ) { return name ; } } return null ; }
Find the name of an attribute case insensitive .