|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.modelmutator.mutation.MutationPredicates
public final class MutationPredicates
A set of predicates used by mutations for selecting, filtering, checking objects and features.
| Field Summary | |
|---|---|
static String |
EXTENDED_META_DATA
Extended meta data source of EAnnotations. |
static String |
GROUP
Value of a details entry in EAnnotations to denote Feature Map groups. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
HAS_FEATURE_MAP_ENTRY_TYPE
Predicate specifying whether an EStructuralFeature is of type
FeatureMapEntry. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
HAS_GROUP_FEATURE_MAP_ENTRY_TYPE
Predicate specifying whether an EStructuralFeature is the feature map attribute of a feature map group. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_CONTAINMENT_OR_OPPOSITE_OF_CONTAINMENT_REFERENCE
Predicate specifying whether an EStructuralFeature is a containment EReference or the opposite of
a containment EReference. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_CONTAINMENT_REFERENCE
Predicate specifying whether an EStructuralFeature is a containment EReference. |
static com.google.common.base.Predicate<? super Object> |
IS_LIST
Predicate specifying whether an Object is a list. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_MULTI_VALUED
Predicate specifying whether an EStructuralFeature is multi-valued. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_MUTABLE
Predicate specifying whether an EStructuralFeature is mutable. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_MUTABLE_ATTRIBUTE
Predicate specifying whether an EStructuralFeature is a mutable EAttribute. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_MUTABLE_CONTAINMENT_REFERENCE
Predicate specifying whether an EStructuralFeature is a mutable containment EReference. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_MUTABLE_REFERENCE
Predicate specifying whether an EStructuralFeature is a mutable EReference. |
static com.google.common.base.Predicate<? super Object> |
IS_NON_EMPTY_EOBJECT_LIST
Predicate specifying whether an Object is a list of EObjects containing at least one
EObject. |
static com.google.common.base.Predicate<? super Object> |
IS_NON_EMPTY_EOBJECT_OR_LIST
Predicate specifying whether an Object is an EObject or a list of EObjects
containing at least one EObject. |
static com.google.common.base.Predicate<? super Object> |
IS_NON_EMPTY_FEATURE_MAP
Predicate specifying whether an Object is a feature map containing at least one value. |
static com.google.common.base.Predicate<? super Object> |
IS_NON_EMPTY_VALUE_OR_LIST
Predicate specifying whether an Object is not null or an empty list. |
static com.google.common.base.Predicate<? super Object> |
IS_NON_NULL_EOBJECT
Predicate specifying whether an Object is not null and an EObject. |
static com.google.common.base.Predicate<? super Object> |
IS_NULL_OR_LIST
Predicate specifying whether an Object is null or a list. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_OPPOSITE_OF_CONTAINMENT_REFERENCE
Predicate specifying whether an EStructuralFeature is the opposite of a containment EReference. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
IS_REFERENCE
Predicate specifying whether an EStructuralFeature is a EReference. |
static String |
KIND
Key of a details entry in EAnnotations to denote FeatureMap groups. |
| Method Summary | |
|---|---|
static com.google.common.base.Predicate<? super Object> |
containsEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Predicate specifying whether an Object is the container of an EObject that itself has at most the
given number of maxNumberOfContainments. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
hasCompatibleType(org.eclipse.emf.ecore.EStructuralFeature feature)
Predicate specifying whether an EStructuralFeature has a compatible type to the given feature. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
hasMaxNumberOfContainments(int maxNumberOfContainments)
Predicate specifying whether an EObject contains at most the given number of
maxNumberOfContainments. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
isAncestor(org.eclipse.emf.ecore.EObject eObject)
Predicate specifying whether an EObject is the ancestor of a given eObject. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
isChild(org.eclipse.emf.ecore.EObject eObject)
Predicate specifying whether an EObject is the child of the given eObject. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
isCompatibleWithAnyFeatureOfEClass(org.eclipse.emf.ecore.EClass eClass)
Predicate specifying whether an EStructuralFeature has a compatible type to any of the features' types of
the given eClass. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
isContainedByEObject(org.eclipse.emf.ecore.EObject eContainer)
Predicate specifying whether an EObject is contained by the given eContainer. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
isContainedByFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Predicate specifying whether an EObject is contained by the given feature. |
static com.google.common.base.Predicate<? super Object> |
isEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Predicate specifying whether an Object is an EObject containing at most the given number of
maxNumberOfContainments. |
static com.google.common.base.Predicate<? super Object> |
isListContainingEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Predicate specifying whether an Object is a list of EObjects containing one EObject
that itself has at most the given number of maxNumberOfContainments. |
static com.google.common.base.Predicate<? super Object> |
isListWithSpecifiedSize(int size)
Predicate specifying whether an Object is a list with the given size. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
isNotTheSame(org.eclipse.emf.ecore.EObject eObject)
Predicate specifying whether an EObject is not the same as the given eObject. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
mayBeContainedByAnyOfTheseReferences(Iterable<org.eclipse.emf.ecore.EReference> references)
Predicate specifying whether an EObject may be contained by any of the given references. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> |
mayBeContainedByFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Predicate specifying whether an EObject may be contained by the given feature. |
static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> |
mayTakeEObjectAsValue(org.eclipse.emf.ecore.EObject eObject)
Predicate specifying whether an EStructuralFeature may take the given eObject as value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXTENDED_META_DATA
public static final String KIND
public static final String GROUP
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_REFERENCE
EStructuralFeature is a EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_CONTAINMENT_REFERENCE
EStructuralFeature is a containment EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_CONTAINMENT_OR_OPPOSITE_OF_CONTAINMENT_REFERENCE
EStructuralFeature is a containment EReference or the opposite of
a containment EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_OPPOSITE_OF_CONTAINMENT_REFERENCE
EStructuralFeature is the opposite of a containment EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_MUTABLE_CONTAINMENT_REFERENCE
EStructuralFeature is a mutable containment EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_MUTABLE
EStructuralFeature is mutable.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_MULTI_VALUED
EStructuralFeature is multi-valued.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_MUTABLE_ATTRIBUTE
EStructuralFeature is a mutable EAttribute.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> IS_MUTABLE_REFERENCE
EStructuralFeature is a mutable EReference.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> HAS_FEATURE_MAP_ENTRY_TYPE
EStructuralFeature is of type
FeatureMapEntry.
public static final com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> HAS_GROUP_FEATURE_MAP_ENTRY_TYPE
EStructuralFeature is the feature map attribute of a feature map group.
public static final com.google.common.base.Predicate<? super Object> IS_NON_EMPTY_VALUE_OR_LIST
Object is not null or an empty list.
public static final com.google.common.base.Predicate<? super Object> IS_NON_EMPTY_FEATURE_MAP
Object is a feature map containing at least one value.
public static final com.google.common.base.Predicate<? super Object> IS_NON_EMPTY_EOBJECT_OR_LIST
Object is an EObject or a list of EObjects
containing at least one EObject.
public static final com.google.common.base.Predicate<? super Object> IS_NON_NULL_EOBJECT
Object is not null and an EObject.
public static final com.google.common.base.Predicate<? super Object> IS_NON_EMPTY_EOBJECT_LIST
Object is a list of EObjects containing at least one
EObject.
public static final com.google.common.base.Predicate<? super Object> IS_NULL_OR_LIST
Object is null or a list.
public static final com.google.common.base.Predicate<? super Object> IS_LIST
Object is a list.
| Method Detail |
|---|
public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> mayTakeEObjectAsValue(org.eclipse.emf.ecore.EObject eObject)
EStructuralFeature may take the given eObject as value.
eObject - The EObject to check.
true if it may take eObject as value, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> hasCompatibleType(org.eclipse.emf.ecore.EStructuralFeature feature)
EStructuralFeature has a compatible type to the given feature.
feature - The EStructuralFeature to check.
true if its type is compatible to the one of feature, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EStructuralFeature> isCompatibleWithAnyFeatureOfEClass(org.eclipse.emf.ecore.EClass eClass)
EStructuralFeature has a compatible type to any of the features' types of
the given eClass.
eClass - The EClass to check.
true if there is at least one feature in eClass having a compatible type,
false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> mayBeContainedByFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
EObject may be contained by the given feature.
feature - The EStructuralFeature to check.
true if it may be contained by feature, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> mayBeContainedByAnyOfTheseReferences(Iterable<org.eclipse.emf.ecore.EReference> references)
EObject may be contained by any of the given references.
references - The references to check.
true if there is at least one reference in references, which may contain it,
false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> isNotTheSame(org.eclipse.emf.ecore.EObject eObject)
EObject is not the same as the given eObject.
eObject - The EObject to compare it to.
true if it is not the same, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> isChild(org.eclipse.emf.ecore.EObject eObject)
EObject is the child of the given eObject.
eObject - The EObject to check.
true if it is a child of eObject, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> isAncestor(org.eclipse.emf.ecore.EObject eObject)
EObject is the ancestor of a given eObject.
eObject - The EObject to check.
true if it is the ancestor of eObject, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> isContainedByFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
EObject is contained by the given feature.
feature - The EStructuralFeature to check.
true if it is contained by feature, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> isContainedByEObject(org.eclipse.emf.ecore.EObject eContainer)
EObject is contained by the given eContainer.
eContainer - The EObject to check.
true if it is contained by eContainer, false otherwise.public static com.google.common.base.Predicate<? super Object> containsEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Object is the container of an EObject that itself has at most the
given number of maxNumberOfContainments.
maxNumberOfContainments - The maximum number of containments to check.
true if it contains an EObject that itself has a less or equal number of
containments than specified in maxNumberOfContainments, false otherwise.public static com.google.common.base.Predicate<? super Object> isListContainingEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Object is a list of EObjects containing one EObject
that itself has at most the given number of maxNumberOfContainments.
maxNumberOfContainments - The maximum number of containments to check.
true if it is a list containing an EObject that itself has a less or equal number of
containments than specified in maxNumberOfContainments, false otherwise.public static com.google.common.base.Predicate<? super Object> isEObjectWithMaxNumberOfContainments(int maxNumberOfContainments)
Object is an EObject containing at most the given number of
maxNumberOfContainments.
maxNumberOfContainments - The maximum number of containments to check.
true if it is is an EObject containing a less or equal number of
containments than specified in maxNumberOfContainments, false otherwise.public static com.google.common.base.Predicate<? super org.eclipse.emf.ecore.EObject> hasMaxNumberOfContainments(int maxNumberOfContainments)
EObject contains at most the given number of
maxNumberOfContainments.
maxNumberOfContainments - The maximum number of containments to check.
true if it contains a less or equal number of containments than specified in
maxNumberOfContainments, false otherwise.public static com.google.common.base.Predicate<? super Object> isListWithSpecifiedSize(int size)
Object is a list with the given size.
size - The size to check.
true if it is a list of the given size, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||