com.esri.adf.web.ags.data.edit
Interface AttributeFilter

All Superinterfaces:
Serializable

public interface AttributeFilter
extends Serializable

Defines the attribute filter that can be used when retrieving the attributes of a feature. The attribute filter is used to modify the properties of an attribute. A user can implement the filter to remove certain attributes from the list of editable attributes or modify the properties of certain attributes. To apply this filter, any method that retrieves the features of a layer must invoke it. The user must implement the filter method that will be called for each attribute retrieved from the feature class. For details see EditUtil.getAttributes.


Method Summary
 Attribute filter(Attribute attribute)
          When retrieving attributes for a feature/feature class, this method is invoked to modify the properties of the attribute using a pre-defined filter.
 

Method Detail

filter

Attribute filter(Attribute attribute)
When retrieving attributes for a feature/feature class, this method is invoked to modify the properties of the attribute using a pre-defined filter. This method is invoked for each attribute of the feature/feature class. This method can be implemented to modify the properties of the attribute. The following code snippet demonstrates a filter that makes all attributes read only. If the filter returns the value null for any attribute, that attribute is not displayed. For details see EditUtil.getAttributes.
 public Attribute filter(Attribute attribute) {
   attribute.setReadOnly(true);
   return attribute;
 }
 

Parameters:
attribute - the attribute to evaluate.