/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Write the given entity's comments. By default, tests if entity is * {@link Commentable}. */ protected void addComments(Object obj) throws SAXException { if (obj instanceof Commentable) addComments(((Commentable) obj).getComments()); }
/** * Write the given entity's comments. By default, tests if entity is * {@link Commentable}. */ protected void addComments(Object obj) throws SAXException { if (obj instanceof Commentable) addComments(((Commentable) obj).getComments()); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Write the given entity's comments. By default, tests if entity is * {@link Commentable}. */ protected void addComments(Object obj) throws SAXException { if (obj instanceof Commentable) addComments(((Commentable) obj).getComments()); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }
/** * Write the given entity's comments. By default, tests if entity is * {@link Commentable}. */ protected void addComments(Object obj) throws SAXException { if (obj instanceof Commentable) addComments(((Commentable) obj).getComments()); }
/** * Add current comments to the given entity. By default, assumes entity * is {@link Commentable}. */ protected void addComments(Object obj) { String[] comments = currentComments(); if (comments.length > 0 && obj instanceof Commentable) ((Commentable) obj).setComments(comments); }