com.bigllc.retsiq.metadata.io
Interface MetadataFilter


public interface MetadataFilter

A filter interface for allowing the metadata transformers to filter relevant metadata. For every node traversed the filter will be queried to determine if that node should be traversed. If the method returns false then it and it's children will not be transformed.

Author:
Marc G. Smith

Field Summary
static MetadataFilter OPEN_FILTER
          An open filter that accepts everything.
 
Method Summary
 boolean accept(MetadataTableMap node)
          This method is called by the transformers to determine if a node should be filtered out of the transformation or not.
 

Field Detail

OPEN_FILTER

static final MetadataFilter OPEN_FILTER
An open filter that accepts everything. Using this filter will not filter any metadata.

Method Detail

accept

boolean accept(MetadataTableMap node)
This method is called by the transformers to determine if a node should be filtered out of the transformation or not. Implementers can query the nodes type and attributes to determine if it should be filtered or otherwise.

Parameters:
table - the metadata node being queried.
Returns:
true if it should not be filtered, false to filter it and it's children from being filtered.