public class UniquePaths extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SEP |
static String |
U_PATTERN |
Constructor and Description |
---|
UniquePaths() |
Modifier and Type | Method and Description |
---|---|
static String |
get(Object nameReference)
Get a unique ID with no base path
|
static String |
get(Object nameReference,
String basePath)
Return a unique path based on basePath
|
public static final String SEP
public static final String U_PATTERN
public static String get(Object nameReference, String basePath)
nameReference
- The simple class name of that object is used as part of the
generated unique IDbasePath
- All occurrences of U_PATTERN
in basePath are replaced by the generated
unique ID. If $U$ is not found in basePath, unique ID is added at its end.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.