public class UC4UserName extends UC4ObjectName
maxLength
Constructor and Description |
---|
UC4UserName(java.lang.String name)
Constructs a
UC4UserName using the specified name . |
UC4UserName(UC4UserName name)
Constructs a
UC4UserName using the specified parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllowedChars()
Returns the allowed characters of an object name
|
boolean |
isValid(java.lang.String name)
Tests if the supplied name would be a valid name for an
object in the Automation Engine.
|
boolean |
isValidUsername()
Returns
true if this object contains a valid user name. |
containsVariable, containsVariable, equals, getName, hashCode, isEmpty, toString
public UC4UserName(java.lang.String name)
UC4UserName
using the specified name
.name
- nameInvalidUC4NameException
- if the name is not empty and invalidpublic UC4UserName(UC4UserName name)
UC4UserName
using the specified parameters.name
- UC4UserName
public boolean isValid(java.lang.String name)
UC4ObjectName
isValid
in class UC4ObjectName
name
- Name to be testedpublic boolean isValidUsername()
true
if this object contains a valid user name.public java.lang.String getAllowedChars()
UC4ObjectName
getAllowedChars
in class UC4ObjectName