public abstract class HomeKey extends Object
Repository.lookupHome(HomeKey)| Modifier and Type | Field and Description | 
|---|---|
static String | 
KEY_PATTERN
Regular expression that controls the syntax of a dataspace or snapshot key. 
 | 
static int | 
MAX_KEY_LENGTH
Maximum length of a dataspace or snapshot key: 32. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object x)  | 
static BranchKey | 
forBranchName(String aName)
Returns the dataspace identifier with the specified name. 
 | 
String | 
format()
Returns a persistent identifier of a dataspace or snapshot. 
 | 
static VersionKey | 
forVersionName(String aName)
Returns the snapshot identifier with the specified name. 
 | 
String | 
getName()
Returns the string associated with this key. 
 | 
int | 
hashCode()  | 
abstract boolean | 
isBranch()
Returns  
true if this key identifies a dataspace. | 
boolean | 
isVersion()
Returns  
true if this key identifies a snapshot. | 
static HomeKey | 
parse(String aString)
Parses the specified string, so as to return either a dataspace or snapshot key. 
 | 
String | 
toDisplayString(Locale aLocale)
Returns a user-friendly string that specifies
 the type of this key, for example, "Dataspace <name>"
 or "Snapshot <name>". 
 | 
String | 
toString()  | 
public static final int MAX_KEY_LENGTH
public static final String KEY_PATTERN
"[a-zA-Z0-9_:.\\-\\|]*"
public static final BranchKey forBranchName(String aName)
public static final VersionKey forVersionName(String aName)
public static final HomeKey parse(String aString)
 The specified string must have been generated by format().
 
aString - specified stringIllegalArgumentException - If specified string :
                                  format(), 
forVersionName(String), 
forBranchName(String)public abstract boolean isBranch()
true if this key identifies a dataspace.public final boolean isVersion()
true if this key identifies a snapshot.public final String getName()
 Since the dataspace namespace and the snapshot namespace are independent,
 the returned string is only an identifier in the context of one of the namespaces.
 For a global dataspace or snapshot identifier, the method
 format() must be used.
 
format()public final String format()
 Compared to the method getName(), this identifier additionally specifies
 whether this key is for a dataspace or a snapshot.
 
parse(String)public final String toDisplayString(Locale aLocale)