Package wt.change2
Interface ChangeItemComplexityDelegate
- All Known Implementing Classes:
DefaultChangeItemComplexityDelegate
public interface ChangeItemComplexityDelegate
This is the interface which defines the delegate to be implemented to
calculate the complexity of the Change Item.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionconvertToChangeNoticeComplexity(Complexity complexity) For a given Complexity, convert it to a ChangeNoticeComplexity.convertToComplexity(ChangeNoticeComplexity complexity) For a given ChangeNoticeComplexity, convert it to a Complexity.evaluate(Persistable referenceObject) Determine the value of Complexity.evaluate(Persistable referenceObject, TypeInstance changeTypeInst, String defValue) Determine the value of Complexity.booleanisComplexityMutable(Persistable referenceObject, EnumeratedType complexity) For a given Persistable and some specified complexity determine if the complexity should be "fixed" or if it can be allowed to be changed.
-
Method Details
-
evaluate
Determine the value of Complexity. Can be called from all launch points ((Change Requests, Containers, WTParts) by passing in a Persistable reference object.
Supported API: true- Parameters:
referenceObject- Reference object for change notice.- Returns:
- EnumeratedType Complexity default value.
-
evaluate
Determine the value of Complexity. Can be called from all launch points ((Change Requests, Containers, WTParts) by passing in a Persistable reference object.
Supported API: true- Parameters:
referenceObject- Reference object for change item.changeTypeInst- Type instance for change item (may be null).defValue- default value.- Returns:
- EnumeratedType Complexity default value.
-
isComplexityMutable
boolean isComplexityMutable(Persistable referenceObject, EnumeratedType complexity) throws WTException For a given Persistable and some specified complexity determine if the complexity should be "fixed" or if it can be allowed to be changed.
Supported API: true- Parameters:
referenceObject- Reference object for change item.complexity- Default complexity value for change item.- Returns:
- boolean True if default complexity value can be changed.
- Throws:
WTException
-
convertToChangeNoticeComplexity
For a given Complexity, convert it to a ChangeNoticeComplexity. If nothing is found, then this will return null by default.
Supported API: true- Parameters:
Complexity- complexity to be converted- Returns:
- ChangeNoticeComplexity the resulting change notice complexity
-
convertToComplexity
For a given ChangeNoticeComplexity, convert it to a Complexity. If nothing is found, then this will return null by default.
Supported API: true- Parameters:
ChangeNoticeComplexity- change notice complexity to be converted- Returns:
- Complexity the resulting omplexity
-