use of org.cerberus.engine.entity.Identifier in project cerberus-source by cerberustesting.
the class IdentifierService method getIdentifier.
private Identifier getIdentifier(String input, String defaultIdentifier) {
Identifier result = new Identifier();
String identifier;
String locator;
String[] strings = input.split("=", 2);
if (strings.length == 1) {
identifier = defaultIdentifier;
locator = strings[0];
} else {
identifier = strings[0];
locator = strings[1];
}
result.setIdentifier(identifier);
result.setLocator(locator);
return result;
}
Aggregations