/** * @see org.opencms.util.CmsHtmlParser#visitTag(org.htmlparser.Tag) */ @Override public void visitTag(Tag tag) { boolean change = m_settings.replace(tag); if (change) { m_changedContent = true; } super.visitTag(tag); }
/** * @see org.htmlparser.visitors.NodeVisitor#visitTag(org.htmlparser.Tag) */ @Override public void visitTag(Tag tag) { super.visitTag(tag); // get the tagname String tagname = tag.getTagName(); // this is one of the tags that should not allow decoation if (m_config.isExcluded(tagname)) { m_decorate = false; } else { m_decorate = true; } }
/** * @see org.htmlparser.visitors.NodeVisitor#visitTag(org.htmlparser.Tag) */ @Override public void visitTag(Tag tag) { super.visitTag(tag); // get the tagname String tagname = tag.getTagName(); // this is one of the tags that should not allow decoation if (m_config.isExcluded(tagname)) { m_decorate = false; } else { m_decorate = true; } }
/** * Visitor method to process a tag (start).<p> * * @param tag the tag to process */ @Override public void visitTag(Tag tag) { if (tag instanceof LinkTag) { processLinkTag((LinkTag)tag); } else if (tag instanceof ImageTag) { processImageTag((ImageTag)tag); } else if (tag instanceof ObjectTag) { processObjectTag((ObjectTag)tag); } else { // there are no specialized tag classes for these tags :( if (TAG_EMBED.equals(tag.getTagName())) { processEmbedTag(tag); } else if (TAG_AREA.equals(tag.getTagName())) { processAreaTag(tag); } } // append text content of the tag (may have been changed by above methods) super.visitTag(tag); }
/** * Visitor method to process a tag (start).<p> * * @param tag the tag to process */ @Override public void visitTag(Tag tag) { if (tag instanceof LinkTag) { processLinkTag((LinkTag)tag); } else if (tag instanceof ImageTag) { processImageTag((ImageTag)tag); } else if (tag instanceof ObjectTag) { processObjectTag((ObjectTag)tag); } else { // there are no specialized tag classes for these tags :( if (TAG_EMBED.equals(tag.getTagName())) { processEmbedTag(tag); } else if (TAG_AREA.equals(tag.getTagName())) { processAreaTag(tag); } } // append text content of the tag (may have been changed by above methods) super.visitTag(tag); }