org.apache.jetspeed.rewriter.rules.impl
Class TagImpl

java.lang.Object
  extended by org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
      extended by org.apache.jetspeed.rewriter.rules.impl.TagImpl
All Implemented Interfaces:
Identified, Tag

public class TagImpl
extends IdentifiedImpl
implements Tag

Tag

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

Field Summary
private  Collection attributes
           
private  boolean remove
           
private  boolean strip
           
 
Fields inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
id
 
Constructor Summary
TagImpl()
           
 
Method Summary
 Collection getAttributes()
          Castor getter to get attributes for a 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 setAttributes(Collection attributes)
          Castor setter to set attributes for a Tag.
 void setId(String id)
          Set the unique identification string for this rule.
 void setRemove(boolean b)
          Represents whether this tag is to be removed during rewrite phase.
 void setStrip(boolean b)
          Represents whether this tag is to be removed during rewrite phase.
 String toString()
           
 
Methods inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.rewriter.rules.Identified
getId
 

Field Detail

remove

private boolean remove

strip

private boolean strip

attributes

private Collection attributes
Constructor Detail

TagImpl

public TagImpl()
Method Detail

setId

public void setId(String id)
Description copied from interface: Identified
Set the unique identification string for this rule.

Specified by:
setId in interface Identified
Overrides:
setId in class IdentifiedImpl
Parameters:
id - the unique identifier of the rule

getRemove

public boolean getRemove()
Description copied from interface: Tag
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.

Specified by:
getRemove in interface Tag
Returns:
true if this tag should be removed

setRemove

public void setRemove(boolean b)
Description copied from interface: Tag
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.

Specified by:
setRemove in interface Tag
Parameters:
b - true if this tag should be removed

toString

public String toString()
Overrides:
toString in class Object

setAttributes

public void setAttributes(Collection attributes)
Castor setter to set attributes for a Tag.

Parameters:
attributes -

getAttributes

public Collection getAttributes()
Castor getter to get attributes for a Tag.

Specified by:
getAttributes in interface Tag
Parameters:
attributes -
Returns:
A collection of attributes.

getStrip

public boolean getStrip()
Description copied from interface: Tag
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.

Specified by:
getStrip in interface Tag
Returns:

setStrip

public void setStrip(boolean b)
Description copied from interface: Tag
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.

Specified by:
setStrip in interface Tag
Parameters:
b -


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