Package org.gbif.api.model.registry
Class Metadata
- java.lang.Object
-
- org.gbif.api.model.registry.Metadata
-
- All Implemented Interfaces:
Serializable
,LenientEquals<Metadata>
public class Metadata extends Object implements Serializable, LenientEquals<Metadata>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Metadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull @Size(min=1) String
getContent()
@NotNull Date
getCreated()
@NotNull @Size(min=3) String
getCreatedBy()
@NotNull UUID
getDatasetKey()
@Min(1L) Integer
getKey()
@NotNull Date
getModified()
@NotNull @Size(min=3) String
getModifiedBy()
@NotNull MetadataType
getType()
int
hashCode()
boolean
lenientEquals(Metadata other)
Does not include the key or server controlled values (created, createdBy etc).void
setContent(String content)
void
setCreated(Date created)
void
setCreatedBy(String createdBy)
void
setDatasetKey(UUID datasetKey)
void
setKey(Integer key)
void
setModified(Date modified)
void
setModifiedBy(String modifiedBy)
void
setType(MetadataType type)
String
toString()
-
-
-
Constructor Detail
-
Metadata
public Metadata()
-
-
Method Detail
-
getDatasetKey
@NotNull public @NotNull UUID getDatasetKey()
-
setDatasetKey
public void setDatasetKey(UUID datasetKey)
-
getType
@NotNull public @NotNull MetadataType getType()
-
setType
public void setType(MetadataType type)
-
getContent
@NotNull @Size(min=1) public @NotNull @Size(min=1) String getContent()
-
setContent
public void setContent(String content)
-
getCreatedBy
@NotNull @Size(min=3) public @NotNull @Size(min=3) String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getModifiedBy
@NotNull @Size(min=3) public @NotNull @Size(min=3) String getModifiedBy()
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
-
getCreated
@NotNull public @NotNull Date getCreated()
-
setCreated
public void setCreated(Date created)
-
getModified
@NotNull public @NotNull Date getModified()
-
setModified
public void setModified(Date modified)
-
lenientEquals
public boolean lenientEquals(Metadata other)
Does not include the key or server controlled values (created, createdBy etc).- Specified by:
lenientEquals
in interfaceLenientEquals<Metadata>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-