public class Lexicon extends Object implements Serializable
Provides lexicon name and lexicon content in string format. For more information, see Pronunciation Lexicon Specification (PLS) Version 1.0.
| Constructor and Description |
|---|
Lexicon() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
Lexicon content in string format.
|
String |
getName()
Name of the lexicon.
|
int |
hashCode() |
void |
setContent(String content)
Lexicon content in string format.
|
void |
setName(String name)
Name of the lexicon.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Lexicon |
withContent(String content)
Lexicon content in string format.
|
Lexicon |
withName(String name)
Name of the lexicon.
|
public String getContent()
Lexicon content in string format. The content of a lexicon must be in PLS format.
Lexicon content in string format. The content of a lexicon must be in PLS format.
public void setContent(String content)
Lexicon content in string format. The content of a lexicon must be in PLS format.
content - Lexicon content in string format. The content of a lexicon must be in PLS format.
public Lexicon withContent(String content)
Lexicon content in string format. The content of a lexicon must be in PLS format.
Returns a reference to this object so that method calls can be chained together.
content - Lexicon content in string format. The content of a lexicon must be in PLS format.
public String getName()
Name of the lexicon.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
Name of the lexicon.
public void setName(String name)
Name of the lexicon.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
name - Name of the lexicon.
public Lexicon withName(String name)
Name of the lexicon.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
name - Name of the lexicon.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.