public class Description extends Object implements ICleanable
| Constructor and Description |
|---|
Description(String value,
DescriptionType type)
Constructor that requires all mandatory fields.
|
Description(String value,
DescriptionType type,
String language)
Constructor that requires all fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Cleans the description text, removing HTML and unescaping special characters.
|
String |
getLang()
Returns the language in which the description is written.
|
DescriptionType |
getType()
Returns the type of the description.
|
String |
getValue()
Returns a free text description.
|
void |
setLang(String lang)
Changes the language in which the description is written.
|
void |
setType(DescriptionType type)
Changes the type of the description.
|
void |
setValue(String value)
Changes a free text description.
|
public Description(String value, DescriptionType type)
value - free text descriptiontype - the type of the free textpublic Description(String value, DescriptionType type, String language)
value - free text descriptiontype - the type of the free textlanguage - IETF language tagpublic String getValue()
public void setValue(String value)
value - a free text descriptionpublic DescriptionType getType()
public void setType(DescriptionType type)
type - what the description entailspublic String getLang()
public void setLang(String lang)
lang - the language in which the description is writtenpublic void clean()
clean in interface ICleanableCopyright © 2017–2018. All rights reserved.