| Modifier and Type | Field and Description |
|---|---|
static Integer |
NAME_NUMBER_MIN_LENGTH |
| Constructor and Description |
|---|
CableName(String name)
Creates a new instance from a string.
|
CableName(String system,
String subsystem,
String cableClass,
Integer seqNumber)
Creates a new instance from attributes.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
asString(String system,
String subsystem,
String cableClass,
Integer seqNumber)
Returns the string representation of the given parameters as a cable name (example 12A012345).
|
boolean |
equals(Object obj) |
String |
getCableClass() |
Integer |
getSeqNumber() |
String |
getSubsystem() |
String |
getSystem() |
int |
hashCode() |
static boolean |
isValidCableClass(String value)
Returns true if the value represents a valid cable class
|
static boolean |
isValidName(String name)
Returns true if the given name is a valid representation of a cable name.
|
static boolean |
isValidSubsystem(String value)
Returns true if the value represents a valid subsystem.
|
static boolean |
isValidSystem(String value)
Returns true if the value represents a valid system.
|
String |
toString() |
public static final Integer NAME_NUMBER_MIN_LENGTH
public CableName(String name)
name - the string representation of the cable namepublic static boolean isValidName(String name)
name - the name to checkpublic static boolean isValidSystem(String value)
value - the valuepublic static boolean isValidSubsystem(String value)
value - the valuepublic static boolean isValidCableClass(String value)
value - the valuepublic String getSystem()
public String getSubsystem()
public String getCableClass()
public Integer getSeqNumber()
public static String asString(String system, String subsystem, String cableClass, Integer seqNumber)
system - the number systemsubsystem - the number subsystemcableClass - the number cable classseqNumber - the sequential numberCopyright © 2025 European Spallation Source. All rights reserved.