Package cdc.enums
Class BooleanEnumType
- java.lang.Object
-
- cdc.enums.BooleanEnumType
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanEnumTypeINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventHandler(DagEventHandler handler)Adds an event handler.booleanareEqual(Boolean left, Boolean right)Returnstrueif 2 values are equal.booleanequals(Object other)List<Boolean>getChildren(Boolean value)Returns the children of a value.StringgetName(Boolean value)Returns the name of a value.List<Boolean>getParents(Boolean value)Returns the parents of a value.StringgetQName(Boolean value)Returns the (preferred) qualified name (path) of a value.List<Boolean>getRoots()Class<Boolean>getValueClass()List<Boolean>getValues()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.booleanisValid(Boolean value)Returnstruewhen a value is valid.voidremoveEventHandler(DagEventHandler handler)Removes an event handler.BooleanvalueOf(String qname, cdc.util.lang.FailureReaction reaction)Returns the value corresponding to a qualified name.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cdc.enums.DagType
isOverOrEqual, isRoot, isStrictlyUnder, isUnderOrEqual
-
Methods inherited from interface cdc.enums.EnumType
getChildNamed, hasChildNamed, hasSiblingNamed, hasValue, valueOf
-
-
-
-
Field Detail
-
INSTANCE
public static final BooleanEnumType INSTANCE
-
-
Method Detail
-
addEventHandler
public void addEventHandler(DagEventHandler handler)
Description copied from interface:ListTypeAdds an event handler.- Specified by:
addEventHandlerin interfaceListType<Boolean>- Parameters:
handler- The event handler.
-
removeEventHandler
public void removeEventHandler(DagEventHandler handler)
Description copied from interface:ListTypeRemoves an event handler.- Specified by:
removeEventHandlerin interfaceListType<Boolean>- Parameters:
handler- The event handler.
-
isSupported
public boolean isSupported(DagFeature feature)
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
public Class<Boolean> getValueClass()
- Specified by:
getValueClassin interfaceListType<Boolean>- Returns:
- The enum value class.
-
getChildren
public List<Boolean> getChildren(Boolean value)
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
public List<Boolean> getParents(Boolean value)
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
public String getName(Boolean value)
Description copied from interface:EnumTypeReturns the name of a value.
-
getQName
public String getQName(Boolean value)
Description copied from interface:EnumTypeReturns the (preferred) qualified name (path) of a value.
-
isValid
public boolean isValid(Boolean value)
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
public Boolean valueOf(String qname, cdc.util.lang.FailureReaction reaction)
Description copied from interface:EnumTypeReturns the value corresponding to a qualified name.
-
areEqual
public boolean areEqual(Boolean left, Boolean right)
Description copied from interface:ListTypeReturnstrueif 2 values are equal.
-
isStrictlyOver
public boolean isStrictlyOver(Boolean left, Boolean right)
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.
-
-