src
Class Phrase

java.lang.Object
  extended by src.SuiteDeChar
      extended by src.Phrase

public class Phrase
extends SuiteDeChar


Field Summary
 Vocabulaire first
           
 SuiteDeChar suite
           
 
Constructor Summary
Phrase(Vocabulaire v, SuiteDeChar sc)
          head construction for Phrase
 
Method Summary
 int compterMots()
          Calculate the number of words.
 int compterVoyelles()
          Compute the number of vowels.
 boolean estMot()
          Check if it is a word or not.
 Vocabulaire getFirst()
           
 SuiteDeChar getSuite()
           
 int longueur()
          Compute the number of letters and spaces.
 Phrase majusculiser()
          Create a new phrase with only one upper case letter.
 void setFirst(Vocabulaire first)
           
 void setSuite(SuiteDeChar suite)
           
 java.lang.String toString()
          String representation.
 SuiteDeChar toutesMinus()
          Transform all letters into lower case letters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

suite

public SuiteDeChar suite

first

public Vocabulaire first
Constructor Detail

Phrase

public Phrase(Vocabulaire v,
              SuiteDeChar sc)
head construction for Phrase

Parameters:
v -
sc -
Method Detail

longueur

public int longueur()
Description copied from class: SuiteDeChar
Compute the number of letters and spaces.

Specified by:
longueur in class SuiteDeChar
Returns:

toString

public java.lang.String toString()
String representation.

Specified by:
toString in class SuiteDeChar

compterMots

public int compterMots()
Calculate the number of words.

Specified by:
compterMots in class SuiteDeChar
Returns:

toutesMinus

public SuiteDeChar toutesMinus()
Transform all letters into lower case letters.

Specified by:
toutesMinus in class SuiteDeChar
Returns:

compterVoyelles

public int compterVoyelles()
Compute the number of vowels. NOTE the cast here

Specified by:
compterVoyelles in class SuiteDeChar
Returns:

majusculiser

public Phrase majusculiser()
Create a new phrase with only one upper case letter.

Returns:

estMot

public boolean estMot()
Check if it is a word or not. Should test at least 2 letters

Specified by:
estMot in class SuiteDeChar
Returns:

getSuite

public SuiteDeChar getSuite()

setSuite

public void setSuite(SuiteDeChar suite)

getFirst

public Vocabulaire getFirst()

setFirst

public void setFirst(Vocabulaire first)