|
package list;
|
|
|
|
import cXML.node;
|
|
|
|
public class listeDesNodesFormatageDirect {
|
|
|
|
|
|
public static boolean isFormatageDirect(node nod) {
|
|
|
|
String nameNode = nod.getNomElt();
|
|
|
|
switch (nameNode) {
|
|
case "text:p": return true;
|
|
case "text:h": return true;
|
|
|
|
default:
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|