Package cdc.enums
Class BooleanEnumType
java.lang.Object
cdc.enums.BooleanEnumType
EnumType implementation dedicated to booleans.
- Author:
- Damien Carbonne
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandler(DagEventHandler handler) Adds an event handler.booleanReturnstrueif 2 values are equal.booleangetChildren(Boolean value) Returns the children of a value.Returns the name of a value.getParents(Boolean value) Returns the parents of a value.Returns the (preferred) qualified name (path) of a value.getRoots()inthashCode()booleanisLocked()Returnstruewhen modifications are disabled.booleanisStrictlyOver(Boolean left, Boolean right) Returnstruewhen one value is a strict superset of another value.booleanisSupported(DagFeature feature) Returnstruewhen a feature is supported.booleanReturnstruewhen a value is valid.voidremoveEventHandler(DagEventHandler handler) Removes an event handler.Returns the value corresponding to a qualified name.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.enums.DagType
isOverOrEqual, isRoot, isStrictlyUnder, isUnderOrEqualMethods inherited from interface cdc.enums.EnumType
getChildNamed, hasChildNamed, hasSiblingNamed, hasValue, valueOf
-
Field Details
-
INSTANCE
-
-
Method Details
-
addEventHandler
Description copied from interface:ListTypeAdds an event handler.- Specified by:
addEventHandlerin interfaceListType<Boolean>- Parameters:
handler- The event handler.
-
removeEventHandler
Description copied from interface:ListTypeRemoves an event handler.- Specified by:
removeEventHandlerin interfaceListType<Boolean>- Parameters:
handler- The event handler.
-
isSupported
Description copied from interface:ListTypeReturnstruewhen a feature is supported.Locking may make a feature not available even if it is supported.
- Specified by:
isSupportedin interfaceListType<Boolean>- Parameters:
feature- The feature.- Returns:
truewhenfeatureis supported.
-
isLocked
public boolean isLocked()Description copied from interface:ListTypeReturnstruewhen modifications are disabled.A static implementation is always locked.
After locking a dynamic implementation, it is impossible to unlock it. -
getValueClass
- Specified by:
getValueClassin interfaceListType<Boolean>- Returns:
- The enum value class.
-
getValues
-
getRoots
-
getChildren
Description copied from interface:DagTypeReturns the children of a value.- Specified by:
getChildrenin interfaceDagType<Boolean>- Parameters:
value- The value.- Returns:
- The children of
value
-
getParents
Description copied from interface:DagTypeReturns the parents of a value.- Specified by:
getParentsin interfaceDagType<Boolean>- Parameters:
value- The value.- Returns:
- The parents of
value
-
getName
Description copied from interface:EnumTypeReturns the name of a value. -
getQName
Description copied from interface:EnumTypeReturns the (preferred) qualified name (path) of a value. -
isValid
Description copied from interface:ListTypeReturnstruewhen a value is valid.Depending on the enum implementation, a value may be valid at a time and invalid at another time.
Standard enums values are always valid.
Anullvalue is invalid. -
valueOf
Description copied from interface:EnumTypeReturns the value corresponding to a qualified name. -
areEqual
Description copied from interface:ListTypeReturnstrueif 2 values are equal. -
isStrictlyOver
Description copied from interface:DagTypeReturnstruewhen one value is a strict superset of another value.- Specified by:
isStrictlyOverin interfaceDagType<Boolean>- Parameters:
left- The left value (potential superset).right- The right value.- Returns:
truewhenleftis a superset ofright.
-
equals
-
hashCode
public int hashCode()
-