public class FeatureAttUtil
extends java.lang.Object
IValidationMarker.FEATURES_ATTRIBUTE
attribute for validation marker.Constructor and Description |
---|
FeatureAttUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getRulesFeaturesForEObj(java.lang.String ruleId,
org.eclipse.emf.ecore.EObject eObject)
get the set of features whose match the target EObject
|
static void |
packFeatures(org.eclipse.core.resources.IMarker marker,
java.util.Set<java.lang.String> features)
Tools in order to pack target features into marker attribute
IValidationMarker.EOBJECT_ATTRIBUTE |
static java.lang.String |
packFeaturesAsString(org.eclipse.core.resources.IMarker marker,
java.util.Set<java.lang.String> features)
Tools in order to pack target features into String as required for the marker attribute
IValidationMarker.EOBJECT_ATTRIBUTE |
static java.util.Set<java.lang.String> |
unpackFeatures(org.eclipse.core.resources.IMarker marker)
Tools in order to unpack target features from the marker attribute
IValidationMarker.EOBJECT_ATTRIBUTE |
public static void packFeatures(org.eclipse.core.resources.IMarker marker, java.util.Set<java.lang.String> features) throws org.eclipse.core.runtime.CoreException
IValidationMarker.EOBJECT_ATTRIBUTE
marker
- the target markerfeatures
- set of Stringorg.eclipse.core.runtime.CoreException
public static java.lang.String packFeaturesAsString(org.eclipse.core.resources.IMarker marker, java.util.Set<java.lang.String> features) throws org.eclipse.core.runtime.CoreException
IValidationMarker.EOBJECT_ATTRIBUTE
marker
- the target markerfeatures
- set of Stringorg.eclipse.core.runtime.CoreException
public static java.util.Set<java.lang.String> unpackFeatures(org.eclipse.core.resources.IMarker marker) throws org.eclipse.core.runtime.CoreException
IValidationMarker.EOBJECT_ATTRIBUTE
marker
- the target markerorg.eclipse.core.runtime.CoreException
public static java.util.Set<java.lang.String> getRulesFeaturesForEObj(java.lang.String ruleId, org.eclipse.emf.ecore.EObject eObject)
ruleId
- the ruleIDeObject
- the target eObject