Package com.onwbp.adaptation
Class AdaptationReference
- java.lang.Object
-
- com.onwbp.adaptation.AdaptationName
-
- com.onwbp.adaptation.AdaptationReference
-
public final class AdaptationReference extends AdaptationName
Uniquely identifies a dataset in a given dataspace or snapshot. The dataset reference is persistent.- See Also:
Adaptation.getDatasetReference()
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_LENGTH
Maximum length of a reference string: 64.static String
REFERENCE_PATTERN
Regular expression that controls the syntax of a dataset reference.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkAdaptationReferenceStringName(String stringName)
Throws anIllegalArgumentException
if the syntax of theString
parameter is not valid for the creation of anAdaptationReference
.boolean
equals(Object x)
static AdaptationReference
forPersistentName(String aPublicName)
Returns a reference to a dataset given its name.String
getStringName()
Returns the string name.int
hashCode()
-
Methods inherited from class com.onwbp.adaptation.AdaptationName
forName, toString
-
-
-
-
Field Detail
-
MAX_LENGTH
public static final int MAX_LENGTH
Maximum length of a reference string: 64.- See Also:
- Constant Field Values
-
REFERENCE_PATTERN
public static final String REFERENCE_PATTERN
Regular expression that controls the syntax of a dataset reference. The regular expression is:"[a-zA-Z_][-a-zA-Z0-9_.]*"
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkAdaptationReferenceStringName
public static void checkAdaptationReferenceStringName(String stringName)
Throws anIllegalArgumentException
if the syntax of theString
parameter is not valid for the creation of anAdaptationReference
.
-
forPersistentName
public static AdaptationReference forPersistentName(String aPublicName)
Returns a reference to a dataset given its name.
-
getStringName
public String getStringName()
Description copied from class:AdaptationName
Returns the string name.- Specified by:
getStringName
in classAdaptationName
-
-