org.kuali.common.util.property
Class EscapingPropertyPlaceholderHelper

java.lang.Object
  extended by org.springframework.util.PropertyPlaceholderHelper
      extended by org.kuali.common.util.property.EscapingPropertyPlaceholderHelper

public class EscapingPropertyPlaceholderHelper
extends org.springframework.util.PropertyPlaceholderHelper

WARNING This class needs extensive testing. It does not work right. Do not use this in any real sort of way. Support the equivalent of escapeString from the maven-resources-plugin. This allows you to place \ in front of placeholders you don't want replaced. The string The sky over ${city} is \${color} is resolved to The sky over Phoenix is ${color} You can also have default values that are themselves placeholders - ${foo:${bar}}


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.util.PropertyPlaceholderHelper
org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver
 
Constructor Summary
EscapingPropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix)
           
EscapingPropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix, String valueSeparator, String escapeString, boolean ignoreUnresolvablePlaceholders)
           
 
Method Summary
 String getEscapeString()
           
protected  int getNewFromIndex(int fromIndex, int pos, String s)
           
 String getPlaceholderPrefix()
           
 String getPlaceholderSuffix()
           
 String getSimplePrefix()
           
 String getSkipString()
           
protected  int getStartIndex(String s, String prefix, String skipString, int fromIndex)
           
 String getValueSeparator()
           
 boolean isIgnoreUnresolvablePlaceholders()
           
protected  String parseStringValue(String strVal, org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver, Set<String> visitedPlaceholders)
           
 
Methods inherited from class org.springframework.util.PropertyPlaceholderHelper
replacePlaceholders, replacePlaceholders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapingPropertyPlaceholderHelper

public EscapingPropertyPlaceholderHelper(String placeholderPrefix,
                                         String placeholderSuffix)

EscapingPropertyPlaceholderHelper

public EscapingPropertyPlaceholderHelper(String placeholderPrefix,
                                         String placeholderSuffix,
                                         String valueSeparator,
                                         String escapeString,
                                         boolean ignoreUnresolvablePlaceholders)
Method Detail

getStartIndex

protected int getStartIndex(String s,
                            String prefix,
                            String skipString,
                            int fromIndex)

getNewFromIndex

protected int getNewFromIndex(int fromIndex,
                              int pos,
                              String s)

parseStringValue

protected String parseStringValue(String strVal,
                                  org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver,
                                  Set<String> visitedPlaceholders)
Overrides:
parseStringValue in class org.springframework.util.PropertyPlaceholderHelper

getPlaceholderPrefix

public String getPlaceholderPrefix()

getPlaceholderSuffix

public String getPlaceholderSuffix()

getValueSeparator

public String getValueSeparator()

isIgnoreUnresolvablePlaceholders

public boolean isIgnoreUnresolvablePlaceholders()

getSimplePrefix

public String getSimplePrefix()

getEscapeString

public String getEscapeString()

getSkipString

public String getSkipString()


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.