private static void genericizeftStyles ( List < FeatureTypeStyle > ftStyles ) { for ( FeatureTypeStyle featureTypeStyle : ftStyles ) { featureTypeStyle . featureTypeNames ( ) . clear ( ) ; featureTypeStyle . featureTypeNames ( ) . add ( new NameImpl ( GENERIC_FEATURE_TYPENAME ) ) ; } }
Converts the type name of all FeatureTypeStyles to Feature so that the all apply to any feature type . This is admittedly dangerous but is extremely useful because it means that the style can be used with any feature type .