public class Lexicon
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getContent()
Lexicon content in string format.
|
java.lang.String |
getName()
Name of the lexicon.
|
int |
hashCode() |
void |
setContent(java.lang.String content)
Lexicon content in string format.
|
void |
setName(java.lang.String name)
Name of the lexicon.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Lexicon |
withContent(java.lang.String content)
Lexicon content in string format.
|
Lexicon |
withName(java.lang.String name)
Name of the lexicon.
|
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getName()
Name of the lexicon.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
Name of the lexicon.
public void setName(java.lang.String name)
Name of the lexicon.
Constraints:
Pattern: [0-9A-Za-z]{1,20}
name - Name of the lexicon.
public Lexicon withName(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.