Class SubprojectName
java.lang.Object
network.ike.workspace.SubprojectName
Validated subproject-name value — the workspace.yaml key, the
subproject directory name, and the
<subproject> reference
in aggregator POMs all share this string (ike-issues#295).
Validation matches FeatureName: ASCII letters, digits,
-, _, .; must start with a letter or digit.
Filesystem-safe and shell-metacharacter-safe by construction.
Single typed entry point so every consumer of a subproject-name
argument (ws:add, ws:remove, ws:promote,
ws:demote, ws:detach, ws:attach-*, etc.)
gets identical validation rather than scattering regex literals
at call sites — per the compiler-visibility principle.
-
Method Summary
-
Method Details
-
of
Validaterawand wrap it as aSubprojectName.- Parameters:
raw- the candidate name (typically from a-Dsubproject=<name>command-line argument or aworkspace.yamlkey)- Returns:
- a validated
SubprojectName - Throws:
IllegalArgumentException- ifrawis null, empty, or violates any documented rule
-
value
The validated subproject name as a string.- Returns:
- the raw value (never null or empty)
-
equals
-
hashCode
-
toString
-