com.bigllc.retsiq.metadata.io
Interface MetadataTypeFilter


public interface MetadataTypeFilter

A filter interface for determining if a metadata type should be processed. An example of usage may be determining if child types for a node traversed should be filtered or not. If the method returns false then it's children of that type will not be transformed or sourced.

Author:
Marc G. Smith

Field Summary
static MetadataTypeFilter OPEN_FILTER
          Open filer which will accept all types.
static MetadataTypeFilter SEARCH_FILTER
          Filter that accepts only types that are valid for search metadata.
 
Method Summary
 boolean accept(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
          This method is called by a source to determine if a node's children of a given type should be filtered out of the transformation or not.
 

Field Detail

OPEN_FILTER

static final MetadataTypeFilter OPEN_FILTER
Open filer which will accept all types.


SEARCH_FILTER

static final MetadataTypeFilter SEARCH_FILTER
Filter that accepts only types that are valid for search metadata. Update metadata is ignored.

Method Detail

accept

boolean accept(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
This method is called by a source to determine if a node's children of a given type should be filtered out of the transformation or not.

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