private String[] getDynamicProperties(List<Rule> dynamicRules) { StyleAttributeExtractor extractor = new StyleAttributeExtractor(); for (Rule rule : dynamicRules) { rule.accept(extractor); } return extractor.getAttributeNames(); }
String[] ftsAttributes = sae.getAttributeNames();
/** * Checks to make sure that the style passed in can process the FeatureType. * * @param style * The style to check * @param fType * The source requested. * * @throws WmsException * DOCUMENT ME! */ private void checkStyle(Style style, SimpleFeatureType fType) throws WmsException { StyleAttributeExtractor sae = new StyleAttributeExtractor(); sae.visit(style); String[] styleAttributes = sae.getAttributeNames(); String attName; final int length = styleAttributes.length; for (int i = 0; i < length; i++) { attName = styleAttributes[i]; if (fType.getDescriptor(attName) == null) { throw new WmsException( "The requested Style can not be used with " + "this featureType. The style specifies an attribute of " + attName + " and the featureType definition is: " + fType); } } }
Filter filter = query.getFilter(); filter.accept(extractor, null); String[] filterAttnames = extractor.getAttributeNames();
String[] styleAttributes = sae.getAttributeNames();