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

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

public class RulesetImpl
extends IdentifiedImpl
implements Ruleset

Ruleset

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

Field Summary
private  boolean removeComments
           
private  Map ruleMap
           
private  Collection rules
           
private  Map tagMap
           
private  Collection tags
           
 
Fields inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
id
 
Constructor Summary
RulesetImpl()
           
 
Method Summary
 boolean getRemoveComments()
          Get the remove comments flag for removing comments from the markup source.
 Rule getRule(String ruleId)
          Given a rule identifier, lookup and return a rule object.
 Collection getRules()
          Get a collection of rules for this rule set.
 Tag getTag(String tagId)
          Given a tag identifier, lookup and return a tag object.
 Collection getTags()
          Get a collection of markup tags for this rule set.
 void setRemoveComments(boolean b)
          Set the remove comments flag for removing comments from the markup source.
 void setRules(Collection rules)
          Castor setter
 void setTags(Collection tags)
          Castor setter
 void sync()
          Synchronize the Ruleset
 String toString()
           
 
Methods inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
getId, setId
 
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, setId
 

Field Detail

rules

private Collection rules

tags

private Collection tags

ruleMap

private Map ruleMap

tagMap

private Map tagMap

removeComments

private boolean removeComments
Constructor Detail

RulesetImpl

public RulesetImpl()
Method Detail

getTag

public Tag getTag(String tagId)
Description copied from interface: Ruleset
Given a tag identifier, lookup and return a tag object.

Specified by:
getTag in interface Ruleset
Parameters:
tagId - the unique tag identifier
Returns:
the tag object for the given identifier

getRule

public Rule getRule(String ruleId)
Description copied from interface: Ruleset
Given a rule identifier, lookup and return a rule object.

Specified by:
getRule in interface Ruleset
Parameters:
ruleId - the unique rule identifier
Returns:
the rule object for the given identifier

toString

public String toString()
Overrides:
toString in class Object

sync

public void sync()
Description copied from interface: Ruleset
Synchronize the Ruleset

Specified by:
sync in interface Ruleset

setRules

public void setRules(Collection rules)
Castor setter

Parameters:
rules -

getRules

public Collection getRules()
Description copied from interface: Ruleset
Get a collection of rules for this rule set.

Specified by:
getRules in interface Ruleset
Returns:
A collection of rules.

setTags

public void setTags(Collection tags)
Castor setter

Parameters:
rules -

getTags

public Collection getTags()
Description copied from interface: Ruleset
Get a collection of markup tags for this rule set.

Specified by:
getTags in interface Ruleset
Returns:
A collection of markup tags.

getRemoveComments

public boolean getRemoveComments()
Description copied from interface: Ruleset
Get the remove comments flag for removing comments from the markup source.

Specified by:
getRemoveComments in interface Ruleset
Returns:
true True if comments should be removed.

setRemoveComments

public void setRemoveComments(boolean b)
Description copied from interface: Ruleset
Set the remove comments flag for removing comments from the markup source.

Specified by:
setRemoveComments in interface Ruleset
Parameters:
b - True if comments should be removed.


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