|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectt2s.traitement.Phrase
public class Phrase
Pour représenter une phrase (chaine de caractères) et sa prosodie (ponctuation).
| Field Summary | |
|---|---|
static int |
DEFAUT
Tag de prosodie par défaut |
static int |
EXCLAMATION
Tag de prosodie 'exclamation' |
static int |
INTERROGATION
Tag de prosodie 'intérogation' |
static int |
POINT
Tag de prosodie 'point' |
static int |
VIRGULE
Tag de prosodie 'virgule' |
| Constructor Summary | |
|---|---|
Phrase(java.lang.String phrase,
int prosodie)
Constructeur de phrase standart. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPhrase()
Pour récuperer le texte de cette phrase. |
int |
getProsodie()
Pour récuperer la prosodie associée à la phrase |
void |
setProsodie(int p)
Pour affecter un type de prosodie à la phrase |
java.lang.String |
toString()
Méthode d'affichage standart d'une instance de phrase. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int POINT
public static final int VIRGULE
public static final int INTERROGATION
public static final int DEFAUT
public static final int EXCLAMATION
| Constructor Detail |
|---|
public Phrase(java.lang.String phrase,
int prosodie)
phrase - la chaine de caractère correspondanteprosodie - le code associé à la prosodie de cette phrase.| Method Detail |
|---|
public java.lang.String getPhrase()
public void setProsodie(int p)
p - la nouvelle prosodie.public int getProsodie()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||