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 aUC4UserNameusing the specified parameters.UC4UserName(String name) Constructs aUC4UserNameusing the specifiedname. -
Method Summary
Modifier and TypeMethodDescriptionReturns the allowed characters of an object namebooleanTests if the supplied name would be a valid name for an object in the Automation Engine.booleanReturnstrueif 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 aUC4UserNameusing the specifiedname.- Parameters:
name- name- Throws:
InvalidUC4NameException- if the name is not empty and invalid
-
UC4UserName
Constructs aUC4UserNameusing the specified parameters.- Parameters:
name-UC4UserName
-
-
Method Details
-
isValid
Description copied from class:UC4ObjectNameTests if the supplied name would be a valid name for an object in the Automation Engine. The test is case insensitive.- Overrides:
isValidin classUC4ObjectName- Parameters:
name- Name to be tested- Returns:
- true if this is a valid name of an object
-
isValidUsername
public boolean isValidUsername()Returnstrueif 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:UC4ObjectNameReturns the allowed characters of an object name- Overrides:
getAllowedCharsin classUC4ObjectName- Returns:
- String containing allowed characters. NULL is never returned.
-