Class InstanceEnumerationPredicateImpl
java.lang.Object
de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
de.uni_trier.wi2.procake.data.model.base.impl.InstanceEnumerationPredicateImpl
- All Implemented Interfaces:
InstanceEnumerationPredicate
,InstancePredicate
- Direct Known Subclasses:
InstanceValueOrderPredicateImpl
public class InstanceEnumerationPredicateImpl
extends InstancePredicateImpl
implements InstanceEnumerationPredicate
Description is missing
- Author:
- Rainer Maximini
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
atomicClass
Fields inherited from interface de.uni_trier.wi2.procake.data.model.base.InstanceEnumerationPredicate
LOG_SUPER_PREDICATE_MUST_BE_DEFINED_IN_INHERITED_PREDICATE
-
Constructor Summary
ConstructorDescriptionInstanceEnumerationPredicateImpl
(AtomicClassImpl parentClass) Constructor for InstanceEnumerationPredicateImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(AtomicObject newValue) Adds the value to the value set.protected void
checkFinishEditing.getValues.boolean
hasValueOrder.boolean
EachInstancePredicate
must implement this method to check if the givenvalue
is an element of theInstancePredicate
.boolean
isEnumerationPredicate.boolean
Specifies whether the values of the superclass are to be inheritedvoid
removeValue
(AtomicObject value) Removes the object from the value set if the value exists.void
setInheritance
(boolean value) Updates the inheritance value to true or falsevoid
updateValue
(AtomicObject oldElement, AtomicObject newElement) Updates the value in this predicate as well as in all including orders.Methods inherited from class de.uni_trier.wi2.procake.data.model.base.impl.InstancePredicateImpl
finishEditing, getAtomicClass, isIntervalPredicate, isOntologyOrderPredicate, isTaxonomyOrderPredicate, isTotalOrderPredicate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.data.model.base.InstancePredicate
getAtomicClass, isIntervalPredicate, isOntologyOrderPredicate, isTaxonomyOrderPredicate, isTotalOrderPredicate
-
Constructor Details
-
InstanceEnumerationPredicateImpl
Constructor for InstanceEnumerationPredicateImpl.
- Parameters:
parentClass
- aAtomicClassImpl
object
-
-
Method Details
-
addValue
Adds the value to the value set. The add command is not propagated to including orders.- Specified by:
addValue
in interfaceInstanceEnumerationPredicate
- Parameters:
newValue
- aAtomicObject
object
-
checkFinishEditing
checkFinishEditing.
- Overrides:
checkFinishEditing
in classInstancePredicateImpl
- Throws:
ClassHierarchyConsistencyException
- if any.
-
getValues
getValues.
- Specified by:
getValues
in interfaceInstanceEnumerationPredicate
- Returns:
- An array of all values in this predicate.
-
hasValueOrder
public boolean hasValueOrder()hasValueOrder.
- Specified by:
hasValueOrder
in interfaceInstanceEnumerationPredicate
- Returns:
true
if a value order is defined, otherwisefalse
- See Also:
-
holdsFor
EachInstancePredicate
must implement this method to check if the givenvalue
is an element of theInstancePredicate
.- Specified by:
holdsFor
in interfaceInstancePredicate
- Parameters:
value
- The value to check- Returns:
true
if the value is an element of theInstancePredicate
-
isEnumerationPredicate
public boolean isEnumerationPredicate()isEnumerationPredicate.
- Specified by:
isEnumerationPredicate
in interfaceInstancePredicate
- Overrides:
isEnumerationPredicate
in classInstancePredicateImpl
- Returns:
true
if the predicate is anInstanceEnumerationPredicate
-
removeValue
Removes the object from the value set if the value exists. The remove command is not propagated to including orders.- Specified by:
removeValue
in interfaceInstanceEnumerationPredicate
- Parameters:
value
- aAtomicObject
object
-
updateValue
Updates the value in this predicate as well as in all including orders. The update is only be done if the old value exists and the new one not.In opposite to
InstanceEnumerationPredicate.addValue(AtomicObject)
andInstanceEnumerationPredicate.removeValue(AtomicObject)
this method propagates the update to all included value orders.- Specified by:
updateValue
in interfaceInstanceEnumerationPredicate
- Parameters:
oldElement
- aAtomicObject
objectnewElement
- aAtomicObject
object
-
isInherited
public boolean isInherited()Description copied from interface:InstanceEnumerationPredicate
Specifies whether the values of the superclass are to be inherited- Specified by:
isInherited
in interfaceInstanceEnumerationPredicate
- Returns:
false
by default
-
setInheritance
Description copied from interface:InstanceEnumerationPredicate
Updates the inheritance value to true or false- Specified by:
setInheritance
in interfaceInstanceEnumerationPredicate
- Throws:
IllegalEditException
-