Package com.onwbp.adaptation
Class AdaptationReference
java.lang.Object
com.onwbp.adaptation.AdaptationName
com.onwbp.adaptation.AdaptationReference
Uniquely identifies a dataset in a given dataspace or snapshot.
The dataset reference is persistent.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum length of a reference string: 64.static final String
Regular expression that controls the syntax of a dataset reference. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAdaptationReferenceStringName
(String stringName) Throws anIllegalArgumentException
if the syntax of theString
parameter is not valid for the creation of anAdaptationReference
.boolean
static AdaptationReference
forPersistentName
(String aPublicName) Returns a reference to a dataset given its name.Returns the string name.int
hashCode()
Methods inherited from class com.onwbp.adaptation.AdaptationName
forName, toString
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTHMaximum length of a reference string: 64.- See Also:
-
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:
-
-
Method Details
-
checkAdaptationReferenceStringName
Throws anIllegalArgumentException
if the syntax of theString
parameter is not valid for the creation of anAdaptationReference
. -
forPersistentName
Returns a reference to a dataset given its name. -
equals
-
getStringName
Description copied from class:AdaptationName
Returns the string name.- Specified by:
getStringName
in classAdaptationName
-
hashCode
public int hashCode()
-