Package cdc.issues
Interface FormalParam
- All Superinterfaces:
Comparable<FormalParam>
- All Known Implementing Classes:
FormalParamImpl
Definition of a formal parameter. It has:
- A name
- An optional description
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptiongetName()static booleanisValidName(String name) Returnstrueif a string is a valid name: It cannot be null It cannot be empty It cannot contain any space or control characterstatic FormalParamCreates a FormalParam.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
String getName()- Returns:
- The formal parameter name.
-
getDescription
String getDescription()- Returns:
- The formal parameter description.
-
of
Creates a FormalParam.- Parameters:
name- The name.description- The description.- Returns:
- A new FormalParam.
- Throws:
IllegalArgumentException- Whennameis not valid.
-
isValidName
Returnstrueif a string is a valid name:- It cannot be null
- It cannot be empty
- It cannot contain any space or control character
- Parameters:
name- The name.- Returns:
trueiflabelis a valid label.
-