private void setModel(String Declaration){
		int i = 0;
		while(Declaration.charAt(i) == ' ' && i<Declaration.length()-1)i++; // on saute les espaces pour avoir le premier mot de la String (Class, Association, Agreggation, Generalization)
		if(Declaration.charAt(i) == 'C' && Declaration.substring(i, i+5).equals("CLASS")){
			//On definit une Classe
			String NomClasse = "";
			Declaration = Declaration.substring(i+4).trim();
			while(Declaration.charAt(i) != ' '){

				NomClasse = NomClasse + Declaration.charAt(i);
				i++;
			}
			Classe MaClasse = new Classe(NomClasse);
			//On get ses Attributs
			while(!(Declaration.substring(i, i+10).equals("ATTRIBUTES")))i++;
			i = i+10;
			String Attribut = "";
			while(!(Declaration.substring(i, i+10).equals("OPERATIONS"))){
				Attribut = Attribut + Declaration.charAt(i);
				i++;
			}
			MaClasse.addAtt(getAllAttribut(Attribut)); 	
			//On get ses Operation
			MaClasse.addOp(getAllOperation(Declaration.substring(i+10))); 
			MonModel.addClasse(MaClasse);
			//	MaClasse.printElement();


		} else if (Declaration.charAt(i) == 'A' && Declaration.substring(i, i+11).equals("AGGREGATION")){
			i=i+11;
			Aggregation Ag = new Aggregation();
			while(!(Declaration.substring(i, i+9).equals("CONTAINER")))i++;
			Ag.fixContainer(getContainer(Declaration.substring(i+9)));
			while(!(Declaration.substring(i, i+5).equals("PARTS")))i++;
			Ag.fixParts(getParts(Declaration.substring(i+5)));	
			MonModel.addAggregation(Ag);	
			//Ag.printElement();

		} else if (Declaration.charAt(i) == 'R' && Declaration.substring(i, i+8).equals("RELATION")){
			i = i+8;
			Relation Re = new Relation(getName(Declaration.substring(i)));
			while(!(Declaration.substring(i, i+5).equals("ROLES")))i++;
			i = i + 5;
			Re.addRoles(getAllRoles(Declaration.substring(i+5)));
			MonModel.addRelation(Re);
			//Re.printElement();


		} else if(Declaration.charAt(i) == 'G' && Declaration.substring(i, i+14).equals("GENERALIZATION")){
			i += 14;
			Generalization Ge = new Generalization(getName(Declaration.substring(i)));
			while(!(Declaration.substring(i, i+10).equals("SUBCLASSES")))i++;
			i += 10;
			Ge.fixSubClasses(getArrayListSubClasses(Declaration.substring(i)));	
			MonModel.addGeneraliz(Ge);
			//Ge.printElement();
		}
	}