if (this.getTag() != null && this.getValue() != null && this.getComparator() != null) { covers = covers && this.getTag().equals(elementValue.getContextPropertyTag().getTag()); covers = covers && this.getComparator().compare(elementValue.getValue(), (String) this.getValue()); if (this.isNegated()) { covers = !covers; }
if (this.isNegated()) { covers = !covers;
	public boolean covers(MModelElement modelElement) {		boolean covers = true;		if (modelElement == null || modelElement.getTaggedValues() == null) {			return false;		}		MContextPropertyValue elementValue = null;		Object[] taggedValues = modelElement.getTaggedValues().toArray();		for (int i = 0; i < taggedValues.length; i++) {			if (taggedValues[i] instanceof MContextPropertyValue) {				elementValue = (MContextPropertyValue) taggedValues[i];			}		}		// to avoid nullpointerexceptions...		if (this.getTag() != null && this.getValue() != null && this.getComparator() != null) {			covers = covers && this.getTag().equals(elementValue.getContextPropertyTag().getTag());			covers = covers && this.getComparator().compare(elementValue.getValue(), (String) this.getValue());			if (this.isNegated()) {				covers = !covers;			}		}		return covers;	}