public abstract class BaseMetadata extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
abstract BaseMetadata |
clone(String newName) |
abstract BaseMetadataType |
getBaseMetadataType()
Gets the intended type of this metadata.
|
String |
getDescription()
Retrieves the description of this ESS metadata object.
|
String |
getDescriptionKey()
Retrieves the key to the entry in the associated resource bundle
representing the description.
|
String |
getDisplayName()
Retrieves the user friendly name of this ESS metadata object.
|
String |
getDisplayNameKey()
Retrieves the key to the entry in the associated resource bundle
representing the display name.
|
MetadataObjectId |
getMetadataObjectId()
Retrieves the unique identifier of this object within the
metadata repository.
|
String |
getName()
The name of this ESS metadata object.
|
String[] |
getResourceBundles()
Retrieves the resource bundles associated with the translatable
strings for this metadata.
|
int |
hashCode() |
void |
setDescription(String description)
Sets the description associated with this ESS metadata object.
|
void |
setDescriptionKey(String descriptionKey)
Sets the key to be used for lookup description in the
associated resource bundles.
|
void |
setDisplayName(String displayName)
Sets the user friendly name associated with this ESS metadata object.
|
void |
setDisplayNameKey(String displayNameKey)
Sets the key to be used for lookup display name in the
associated resource bundles.
|
void |
setResourceBundles(String[] resourceBundles)
Sets the message bundles to be associated with the translatable strings.
|
String |
toString()
Same value as
BaseMetadata.getName() . |
void |
validate()
Validates this metadata object.
|
public abstract BaseMetadataType getBaseMetadataType()
public abstract BaseMetadata clone(String newName) throws ValidationException
ValidationException
public final String getName()
public final String getDisplayName()
If this metadata displayName is associated with a key in the resource bundle, then the actual entry from the resource bundle will be located and returned.
If the entry is not found in the resource bundle or there is no key associated, then the display name set on this instance is returned.
public final String getDisplayNameKey()
public final String getDescription()
If this metadata description is associated with a key in the resource bundle, then the actual entry from the resource bundle will be located and returned.
If the entry is not found in the resource bundle or there is no key associated, then the display name set on this instance is returned.
public final String getDescriptionKey()
public final String[] getResourceBundles()
public final MetadataObjectId getMetadataObjectId()
MetadataService
when this object is retrieved from the metadata repository.
Therefore if an object is newly created to persist into the repository,
it will not have the unique identifier set initially.null
if this object
is not obtained via the MetadataService
APIs.public final void validate() throws ValidationException
ValidationException
- if validation fails.public final void setDisplayName(String displayName)
displayName
- the user friendly name to be associated
with this ESS metadata object.public final void setDisplayNameKey(String displayNameKey)
displayNameKey
- the key for the resource bundle entry representing
the user friendly name to be associated with this ESS metadata object.public final void setDescription(String description)
description
- description to be associated with this
ESS metadata object.public final void setDescriptionKey(String descriptionKey)
descriptionKey
- the entry to the resourcebundle representing
the description to be associated with this ESS metadata object.public final void setResourceBundles(String[] resourceBundles)
resourceBundles
- an array of resource bundle idspublic String toString()
BaseMetadata.getName()
.