Package org.gbif.api.model.registry
Class Metadata
java.lang.Object
org.gbif.api.model.registry.Metadata
- All Implemented Interfaces:
Serializable,LenientEquals<Metadata>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull @Size(min=1) String@NotNull Date@NotNull @Size(min=3) String@NotNull UUID@Min(1L) IntegergetKey()@NotNull Date@NotNull @Size(min=3) String@NotNull MetadataTypegetType()inthashCode()@jakarta.validation.constraints.AssertTrue(message="contentJson must be valid JSON") booleanbooleanlenientEquals(Metadata other) Does not include the key or server controlled values (created, createdBy etc).voidsetContent(String content) voidsetContentJson(String contentJson) voidsetCreated(Date created) voidsetCreatedBy(String createdBy) voidsetDatasetKey(UUID datasetKey) voidvoidsetModified(Date modified) voidsetModifiedBy(String modifiedBy) voidsetType(MetadataType type) toString()
-
Constructor Details
-
Metadata
public Metadata()
-
-
Method Details
-
getKey
-
setKey
-
getDatasetKey
-
setDatasetKey
-
getType
-
setType
-
getContent
-
setContent
-
getContentJson
-
setContentJson
-
isContentJsonValid
@AssertTrue(message="contentJson must be valid JSON") public @jakarta.validation.constraints.AssertTrue(message="contentJson must be valid JSON") boolean isContentJsonValid() -
getCreatedBy
-
setCreatedBy
-
getModifiedBy
-
setModifiedBy
-
getCreated
-
setCreated
-
getModified
-
setModified
-
equals
-
hashCode
-
toString
-
lenientEquals
Does not include the key or server controlled values (created, createdBy etc).- Specified by:
lenientEqualsin interfaceLenientEquals<Metadata>- Parameters:
other- To compare against- Returns:
- true if...
-