public class SimpleDescribedEntity extends Object implements DescribedEntity
SimpleDescribedEntity is a basic implementation of
DescribedEntity. It provides a basic support for the most generic
properties required by this interface.| Constructor and Description |
|---|
SimpleDescribedEntity()
Create a
SimpleDescribedEntity with the class name as its name
and a null description. |
SimpleDescribedEntity(String name)
Create a
SimpleDescribedEntity with a given name and a
null description. |
SimpleDescribedEntity(String name,
String description)
Create a
SimpleDescribedEntity with a given name and a given
description. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getName() |
void |
setDescription(String description) |
void |
setName(String name) |
String |
toString() |
public SimpleDescribedEntity(String name, String description)
SimpleDescribedEntity with a given name and a given
description.name - the name of the DescribedEntitydescription - the description of the DescribedEntitypublic SimpleDescribedEntity(String name)
SimpleDescribedEntity with a given name and a
null description.name - the name of the DescribedEntitypublic SimpleDescribedEntity()
SimpleDescribedEntity with the class name as its name
and a null description.public void setName(String name)
name - the new name of this DescribedEntitypublic String getName()
getName in interface DescribedEntityDescribedEntitypublic void setDescription(String description)
description - the new description of this DescribedEntitypublic String getDescription()
getDescription in interface DescribedEntityDescribedEntityCopyright © 2018. All rights reserved.