28 lines
481 B
Java
28 lines
481 B
Java
package list;
|
|
|
|
import cXML.node;
|
|
|
|
public class listeDesNodesInfos {
|
|
|
|
public static boolean isInfo(node nod) {
|
|
|
|
String nameNode = nod.getNomElt();
|
|
|
|
switch (nameNode) {
|
|
case "text:p": return true;
|
|
case "text:h": return true;
|
|
case "text:list": return true;
|
|
case "text:list-item": return true;
|
|
case "page": return true;
|
|
case "text:span": return true;
|
|
case "text:index-title": return true;
|
|
|
|
default:
|
|
return false;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|