public abstract class BaseInfo extends Object implements Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addTag(String name,
String value)
Add a tag.
|
void |
addTag(TagInfo tag)
Add a tag.
|
void |
addTags(Collection tags) |
Object |
clone() |
String |
getComment()
Get the comment
|
String |
getName()
Get the name
|
TagInfo |
getTag(String name)
Get the first tag with the given name, or null if there isn't one.
|
List |
getTags()
Get all tags.
|
List |
getTags(String name)
Get all tags with the given name.
|
String |
getTagValue(String name)
Get the value of first tag with the given name.
|
String |
getTagValue(String name,
String defaultValue)
Get the value of first tag with the given name.
|
void |
setComment(String comment)
Get the comment
|
void |
setName(String name)
Set the name
|
public BaseInfo(String name)
public String getName()
public void setName(String name)
public void setComment(String comment)
public String getComment()
public void addTag(TagInfo tag)
public void addTags(Collection tags)
public List getTags()
public TagInfo getTag(String name)
public String getTagValue(String name)