List of usage examples for org.jdom2 Text getTextNormalize
public String getTextNormalize()
From source file:xml.JDOMConverter.java
License:Apache License
/**. * Handles the case where the object in filter is a text * @param a the filtered text/* w ww . j a v a 2s .co m*/ * @throws JSONException */ private void handleText(final Text t) throws JSONException { String str = t.getTextNormalize(); if (!str.isEmpty()) { String parent = t.getParent().getName(); tree.get(current - 1).put(parent, str); skipp = true; } }