23 lines
325 B
Java
23 lines
325 B
Java
|
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;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|