public class UC4ObjectName
extends java.lang.Object
| Constructor and Description |
|---|
UC4ObjectName(java.lang.String name)
Constructs an
UC4ObjectName object using the specified name. |
UC4ObjectName(UC4ObjectName name)
This constructor is required for creating copy of UC4ObjectName
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVariable() |
boolean |
containsVariable(java.lang.String val)
Tests if the supplied name is the valid name of a Script Variable
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name or an empty string if the name is not set.
|
int |
hashCode() |
boolean |
isEmpty()
Tests if the name is empty.
|
boolean |
isValid(java.lang.String objectName)
Tests if the supplied name would be a valid name for an
object in the Automation Engine.
|
java.lang.String |
toString() |
public UC4ObjectName(java.lang.String name)
throws InvalidUC4NameException
UC4ObjectName object using the specified name.
Trailing and leading spaces are removed.
The parameter name is converted to upper case before the check starts.
If name is not a valid object name an InvalidUC4NameException
is thrown.
An empty string is valid. In this case the method isEmpty returns true.name - nameInvalidUC4NameException - if the name is not validpublic UC4ObjectName(UC4ObjectName name)
name - UC4ObjectNamepublic java.lang.String getName()
public boolean isEmpty()
true if the name is an empty stringpublic boolean containsVariable()
public boolean containsVariable(java.lang.String val)
val - Name to be testedpublic boolean isValid(java.lang.String objectName)
objectName - Name to be testedpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object