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
FieldsModifier and TypeFieldDescriptionstatic final intMaximum length of a reference string: 64.static final StringRegular expression that controls the syntax of a dataset reference. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAdaptationReferenceStringName(String stringName) Throws anIllegalArgumentExceptionif the syntax of theStringparameter is not valid for the creation of anAdaptationReference.booleanstatic AdaptationReferenceforPersistentName(String aPublicName) Returns a reference to a dataset given its name.Returns the string name.inthashCode()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 anIllegalArgumentExceptionif the syntax of theStringparameter is not valid for the creation of anAdaptationReference. -
forPersistentName
Returns a reference to a dataset given its name. -
equals
-
getStringName
Description copied from class:AdaptationNameReturns the string name.- Specified by:
getStringNamein classAdaptationName
-
hashCode
public int hashCode()
-