/** * Process an embed tag.<p> * * @param tag the tag to process */ protected void processEmbedTag(Tag tag) { for (int i = 0; i < EMBED_TAG_LINKED_ATTRIBS.length; i++) { String attr = EMBED_TAG_LINKED_ATTRIBS[i]; processLink(tag, attr, CmsRelationType.EMBEDDED_OBJECT); } }
/** * Process an embed tag.<p> * * @param tag the tag to process */ protected void processEmbedTag(Tag tag) { for (int i = 0; i < EMBED_TAG_LINKED_ATTRIBS.length; i++) { String attr = EMBED_TAG_LINKED_ATTRIBS[i]; processLink(tag, attr, CmsRelationType.EMBEDDED_OBJECT); } }
/** * Process an area tag.<p> * * @param tag the tag to process */ protected void processAreaTag(Tag tag) { processLink(tag, ATTRIBUTE_HREF, CmsRelationType.HYPERLINK); }
/** * Process an area tag.<p> * * @param tag the tag to process */ protected void processAreaTag(Tag tag) { processLink(tag, ATTRIBUTE_HREF, CmsRelationType.HYPERLINK); }
/** * Process a link tag.<p> * * @param tag the tag to process */ protected void processLinkTag(LinkTag tag) { processLink(tag, ATTRIBUTE_HREF, CmsRelationType.valueOf(tag.getTagName())); }
/** * Process a link tag.<p> * * @param tag the tag to process */ protected void processLinkTag(LinkTag tag) { processLink(tag, ATTRIBUTE_HREF, CmsRelationType.valueOf(tag.getTagName())); }
/** * Process an image tag.<p> * * @param tag the tag to process */ protected void processImageTag(ImageTag tag) { processLink(tag, ATTRIBUTE_SRC, CmsRelationType.valueOf(tag.getTagName())); }
/** * Process an image tag.<p> * * @param tag the tag to process */ protected void processImageTag(ImageTag tag) { processLink(tag, ATTRIBUTE_SRC, CmsRelationType.valueOf(tag.getTagName())); }
/** * Process an object tag.<p> * * @param tag the tag to process */ protected void processObjectTag(ObjectTag tag) { CmsRelationType type = CmsRelationType.valueOf(tag.getTagName()); for (int i = 0; i < OBJECT_TAG_LINKED_ATTRIBS.length; i++) { String attr = OBJECT_TAG_LINKED_ATTRIBS[i]; processLink(tag, attr, type); if ((i == 0) && (tag.getAttribute(attr) != null)) { // if code base is available, the other attributes are relative to it, so do not process them break; } } SimpleNodeIterator itChildren = tag.children(); while (itChildren.hasMoreNodes()) { Node node = itChildren.nextNode(); if (node instanceof Tag) { Tag childTag = (Tag)node; if (TAG_PARAM.equals(childTag.getTagName())) { processLink(childTag, ATTRIBUTE_VALUE, type); } } } }
/** * Process an object tag.<p> * * @param tag the tag to process */ protected void processObjectTag(ObjectTag tag) { CmsRelationType type = CmsRelationType.valueOf(tag.getTagName()); for (int i = 0; i < OBJECT_TAG_LINKED_ATTRIBS.length; i++) { String attr = OBJECT_TAG_LINKED_ATTRIBS[i]; processLink(tag, attr, type); if ((i == 0) && (tag.getAttribute(attr) != null)) { // if code base is available, the other attributes are relative to it, so do not process them break; } } SimpleNodeIterator itChildren = tag.children(); while (itChildren.hasMoreNodes()) { Node node = itChildren.nextNode(); if (node instanceof Tag) { Tag childTag = (Tag)node; if (TAG_PARAM.equals(childTag.getTagName())) { processLink(childTag, ATTRIBUTE_VALUE, type); } } } }