Package com.uc4.api
Class UC4UserName
- java.lang.Object
-
- com.uc4.api.UC4ObjectName
-
- com.uc4.api.UC4UserName
-
public class UC4UserName extends UC4ObjectName
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
Constructors Constructor Description UC4UserName(UC4UserName name)Constructs aUC4UserNameusing the specified parameters.UC4UserName(java.lang.String name)Constructs aUC4UserNameusing the specifiedname.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAllowedChars()Returns the allowed characters of an object namebooleanisValid(java.lang.String name)Tests if the supplied name would be a valid name for an object in the Automation Engine.booleanisValidUsername()Returnstrueif this object contains a valid user name.-
Methods inherited from class com.uc4.api.UC4ObjectName
containsVariable, containsVariable, equals, getName, hashCode, isEmpty, toString
-
-
-
-
Constructor Detail
-
UC4UserName
public UC4UserName(java.lang.String name)
Constructs aUC4UserNameusing the specifiedname.- Parameters:
name- name- Throws:
InvalidUC4NameException- if the name is not empty and invalid
-
UC4UserName
public UC4UserName(UC4UserName name)
Constructs aUC4UserNameusing the specified parameters.- Parameters:
name-UC4UserName
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.String name)
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
public java.lang.String 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.
-
-