org.apache.jetspeed.rewriter.rules
Interface Tag

All Superinterfaces:
Identified
All Known Implementing Classes:
TagImpl

public interface Tag
extends Identified

Tag

Version:
$Id: Tag.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor

Method Summary
 Collection getAttributes()
          Get a collection of attributes for the given Tag.
 boolean getRemove()
          Represents whether this tag is to be removed during rewrite phase.
 boolean getStrip()
          Represents whether this tag is to be removed during rewrite phase.
 void setRemove(boolean flag)
          Represents whether this tag is to be removed during rewrite phase.
 void setStrip(boolean flag)
          Represents whether this tag is to be removed during rewrite phase.
 
Methods inherited from interface org.apache.jetspeed.rewriter.rules.Identified
getId, setId
 

Method Detail

getAttributes

Collection getAttributes()
Get a collection of attributes for the given Tag.

Returns:
A collection of attributes.

getRemove

boolean getRemove()
Represents whether this tag is to be removed during rewrite phase. Removing a tag only removes the tag but not the contents in between the start and end tag.

Returns:
true if this tag should be removed

setRemove

void setRemove(boolean flag)
Represents whether this tag is to be removed during rewrite phase. Removing a tag only removes the tag but not the contents in between the start and end tag.

Parameters:
flag - true if this tag should be removed

getStrip

boolean getStrip()
Represents whether this tag is to be removed during rewrite phase. Stripping tags removes the start and end tag, plus all tags and content in between the start and end tag.

Returns:
true if this tag should be stripped.

setStrip

void setStrip(boolean flag)
Represents whether this tag is to be removed during rewrite phase. Stripping tags removes the start and end tag, plus all tags and content in between the start and end tag.

Parameters:
flag - true if this tag should be stripped.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.