org.kuali.maven.plugins.graph.sanitize
Class MavenContextSanitizer

java.lang.Object
  extended by org.kuali.maven.plugins.graph.sanitize.MavenContextSanitizer
All Implemented Interfaces:
NodeSanitizer<MavenContext>, Sanitizer<Node<MavenContext>>
Direct Known Subclasses:
ConflictSanitizer, CyclicSanitizer, DuplicateSanitizer

public abstract class MavenContextSanitizer
extends Object
implements NodeSanitizer<MavenContext>


Constructor Summary
MavenContextSanitizer()
           
MavenContextSanitizer(Map<String,MavenContext> included, State state)
           
 
Method Summary
 Map<String,MavenContext> getIncluded()
           
 State getState()
           
protected  String getSwitchMessage(String artifactId, State switched)
           
protected abstract  void sanitize(MavenContext context, Map<String,MavenContext> included)
           
 void sanitize(Node<MavenContext> node)
           
 void setIncluded(Map<String,MavenContext> included)
           
 void setState(State state)
           
protected  void warnAndSwitch(State switchTo, String artifactId, MavenContext context, String warning)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenContextSanitizer

public MavenContextSanitizer()

MavenContextSanitizer

public MavenContextSanitizer(Map<String,MavenContext> included,
                             State state)
Method Detail

sanitize

protected abstract void sanitize(MavenContext context,
                                 Map<String,MavenContext> included)

sanitize

public void sanitize(Node<MavenContext> node)
Specified by:
sanitize in interface Sanitizer<Node<MavenContext>>

warnAndSwitch

protected void warnAndSwitch(State switchTo,
                             String artifactId,
                             MavenContext context,
                             String warning)

getSwitchMessage

protected String getSwitchMessage(String artifactId,
                                  State switched)

getIncluded

public Map<String,MavenContext> getIncluded()

setIncluded

public void setIncluded(Map<String,MavenContext> included)

getState

public State getState()

setState

public void setState(State state)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.