Example #1
0
 /**
  * delete all descendant elements having specified class attribute
  *
  * @param clazz class attribute
  */
 @SuppressWarnings("unchecked")
 public <T extends AbstractJaxb> void removeDescendants(String clazz) {
   RemoveDescendantsUtil.removeDescendants((T) this, clazz);
 }
Example #2
0
 /**
  * delete all descendant elements that is specified tag type.
  *
  * @param tagType
  */
 @SuppressWarnings("unchecked")
 public <T extends AbstractJaxb> void removeDescendants(Class<T> tagType) {
   RemoveDescendantsUtil.removeDescendants((T) this, tagType);
 }