Package com.uc4.api
Class UC4HostName
java.lang.Object
com.uc4.api.UC4ObjectName
com.uc4.api.UC4HostName
This class represents name of an Agent.
It contains checks to test if the name is a valid host name.
-
Field Summary
Fields inherited from class com.uc4.api.UC4ObjectName
maxLength -
Constructor Summary
ConstructorsConstructorDescriptionUC4HostName(UC4HostName name) Constructs aUC4HostNameusing the specified parameters.UC4HostName(String name) Constructs aUC4HostNameusing the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanReturnstrueif the name represents a generic group of hosts but not a single host.booleanTests if the supplied name would be a valid name for an object in the Automation Engine.Methods inherited from class com.uc4.api.UC4ObjectName
containsVariable, containsVariable, getAllowedChars, getName, isEmpty, toString
-
Constructor Details
-
UC4HostName
Constructs aUC4HostNameusing the specified parameters.- Parameters:
name- Host name- Throws:
InvalidUC4NameException- if the name is not empty and invalid
-
UC4HostName
Constructs aUC4HostNameusing the specified parameters.- Parameters:
name-UC4HostName
-
-
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:
n- Name to be tested- Returns:
- true if this is a valid name of an object
-
isGenericHost
public boolean isGenericHost()Returnstrueif the name represents a generic group of hosts but not a single host.- Returns:
- True if the name is a generic host
-
equals
- Overrides:
equalsin classUC4ObjectName
-
hashCode
public int hashCode()- Overrides:
hashCodein classUC4ObjectName
-