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 188328 2005-02-08 19:08:40Z rogerrut $
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

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

Returns:
A collection of attributes.

getRemove

public 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

public 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

public 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

public 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-2005 Apache Software Foundation. All Rights Reserved.