// // // Generated by StarUML(tm) Java Add-In // // @ Project : Untitled // @ File Name : Element.java // @ Date : 20/01/2008 // @ Author : // // package Documents; public abstract class Element { public int reference; public int coefficient = 0; public String annotation=""; public Section Conteneur = null; public String type; public int getNiveau() { if(this.Conteneur == null) { return 0; } else { return this.Conteneur.getNiveau()+1; } } public abstract int getOrdre(); public abstract int getPoids(); public abstract Element GetChild(int ind); public abstract String afficher(); public String getAnnotation() { return this.annotation; } public void setAnnotation(String ann) { this.annotation = ann; } public int getCoeff() { return this.coefficient; } public void setCoeff(int co) { this.coefficient = co; } }