Package com.uc4.api
Class UC4UserName
java.lang.Object
com.uc4.api.UC4ObjectName
com.uc4.api.UC4UserName
This class represents the name of a USER object.
It contains checks to test if the name is valid for a USER object.
-
Field Summary
Fields inherited from class com.uc4.api.UC4ObjectName
maxLength
-
Constructor Summary
ConstructorsConstructorDescriptionUC4UserName
(UC4UserName name) Constructs aUC4UserName
using the specified parameters.UC4UserName
(String name) Constructs aUC4UserName
using the specifiedname
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the allowed characters of an object nameboolean
Tests if the supplied name would be a valid name for an object in the Automation Engine.boolean
Returnstrue
if this object contains a valid user name.Methods inherited from class com.uc4.api.UC4ObjectName
containsVariable, containsVariable, equals, getName, hashCode, isEmpty, toString
-
Constructor Details
-
UC4UserName
Constructs aUC4UserName
using the specifiedname
.- Parameters:
name
- name- Throws:
InvalidUC4NameException
- if the name is not empty and invalid
-
UC4UserName
Constructs aUC4UserName
using the specified parameters.- Parameters:
name
-UC4UserName
-
-
Method Details
-
isValid
Description copied from class:UC4ObjectName
Tests if the supplied name would be a valid name for an object in the Automation Engine. The test is case insensitive.- Overrides:
isValid
in classUC4ObjectName
- Parameters:
name
- Name to be tested- Returns:
- true if this is a valid name of an object
-
isValidUsername
public boolean isValidUsername()Returnstrue
if this object contains a valid user name.- Returns:
- true if a user object with this name can be created, false if the name is not allowed.
-
getAllowedChars
Description copied from class:UC4ObjectName
Returns the allowed characters of an object name- Overrides:
getAllowedChars
in classUC4ObjectName
- Returns:
- String containing allowed characters. NULL is never returned.
-