org.sonatype.gshell.util
Class ReplacementParser

java.lang.Object
  extended by org.sonatype.gshell.util.ReplacementParser

public abstract class ReplacementParser
extends Object

Helper to process variable pattern-based replacement.

Since:
2.0
Author:
Jason Dillon

Field Summary
static String DEFAULT_PATTERN
           
 
Constructor Summary
ReplacementParser()
           
ReplacementParser(String pattern)
           
 
Method Summary
 String parse(String input)
           
protected abstract  Object replace(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PATTERN

public static final String DEFAULT_PATTERN
See Also:
Constant Field Values
Constructor Detail

ReplacementParser

public ReplacementParser(String pattern)

ReplacementParser

public ReplacementParser()
Method Detail

parse

public String parse(String input)

replace

protected abstract Object replace(String key)
                           throws Exception
Throws:
Exception


Copyright © 2008-2011 Sonatype. All Rights Reserved.