Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2013-2014 by Cisco Systems, Inc. All rights reserved.
 
 package com.cisco.oss.foundation.directory.query;
 
 import java.util.Map;

The ModelServiceInstance QueryCriterion interface. The QueryCriterion provides a method to check whether a ModelServiceInstance satisfies the criterion or not.

Author(s):
zuxiang
public interface QueryCriterion {

Filter the metadata Map of ServiceInstance. If it satisfies the query criterion, then true is returned, otherwise false is returned.

Parameters:
metadataMap the metadata Map of ServiceInstance.
Returns:
true if matched against the QueryCriterion.
	public boolean isMatch(Map<StringStringmetadataMap);

Get the metadata key String that the QueryCriterion validate against.

Returns:
the metadata key String.
New to GrepCode? Check out our FAQ X