Package org.projectnessie.model
Interface Reference
-
- All Superinterfaces:
Base
- All Known Implementing Classes:
ImmutableBranch,ImmutableTag
public interface Reference extends Base
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckHash()Validation rule usingValidation.validateHash(String)(String)}.@Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") StringgetHash()backend system id.@NotBlank @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") StringgetName()Human readable reference name.
-
-
-
Method Detail
-
getName
@NotBlank @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$", message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") @NotBlank @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") String getName()Human readable reference name.
-
getHash
@Nullable @Pattern(regexp="^[0-9a-fA-F]{16,64}$", message="Hash must consist of the hex representation of 8-32 bytes") @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") String getHash()
backend system id. Usually the 32-byte hash of the commit this reference points to.
-
checkHash
@Check default void checkHash()
Validation rule usingValidation.validateHash(String)(String)}.
-
-