public final class NameUpdater
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCurrentName(java.lang.String className)
Looks up the class name; if that does not exist in the map,
then defaults to the input name.
|
static java.lang.String |
getCurrentName(java.lang.String propertyName,
java.lang.String className)
Looks up class name / property name combination; if that
does not exist in the map, then defaults to input property name.
|
static java.lang.String |
getCurrentName(java.lang.String value,
java.lang.String propertyName,
java.lang.String className)
Looks up class name . property name / value combination;
if that does not exist in the map, returns the original value.
|
static java.lang.String |
getCurrentTestName(java.lang.String testClassName,
java.lang.String guiClassName)
Looks up test element / gui class combination; if that
does not exist in the map, then defaults to getCurrentName(testClassName).
|
static boolean |
isMapped(java.lang.String key)
Check if a key is in the map; intended for use by
SaveService#checkClasses()
only. |
public static java.lang.String getCurrentName(java.lang.String className)
className
- the classname from the script filepublic static java.lang.String getCurrentTestName(java.lang.String testClassName, java.lang.String guiClassName)
testClassName
- - test element class nameguiClassName
- - associated gui class namepublic static java.lang.String getCurrentName(java.lang.String propertyName, java.lang.String className)
propertyName
- - property name to checkclassName
- - class name containing the propertypublic static java.lang.String getCurrentName(java.lang.String value, java.lang.String propertyName, java.lang.String className)
value
- the value to be checkedpropertyName
- the name of the propertyclassName
- the class containing the propery.public static boolean isMapped(java.lang.String key)
SaveService#checkClasses()
only.key
- name of the key to checkCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.