This is the base class for all elements of the model.
The name attribute is immutable because it's used as the key.
addMetadata
public void addMetadata(Metadata metadata)
equals
public boolean equals(Object other)
getComment
public String getComment()
getDeprecatedVersion
public Version getDeprecatedVersion()
getDescription
public String getDescription()
getMetadata
protected Metadata getMetadata(Class type,
String key)
getName
public String getName()
hasMetadata
public boolean hasMetadata(String key)
hashCode
public int hashCode()
isEmpty
protected boolean isEmpty(String string)
setComment
public void setComment(String comment)
setDeprecatedVersion
public void setDeprecatedVersion(Version deprecatedVersion)
setDescription
public void setDescription(String description)
setName
public void setName(String name)
setVersionRange
public void setVersionRange(VersionRange versionRange)
validateFieldNotEmpty
protected void validateFieldNotEmpty(String objectName,
String fieldName,
String value)
throws ModelValidationException