org.kuali.rice.krad.util
Class PatternedStringBuilder

java.lang.Object
  extended by org.kuali.rice.krad.util.PatternedStringBuilder

public class PatternedStringBuilder
extends Object

Builds a String instance using a pattern similar to the varargs printf() variety.


Constructor Summary
PatternedStringBuilder(String pattern)
          Constructor that takes a pattern
 
Method Summary
 String getPattern()
          Read accessor method for pattern
 void setPattern(String pattern)
          Write accessor method for pattern
 String sprintf(Object... args)
          Takes an ellipses of String parameters and builds a String instance from them and the pattern given earlier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternedStringBuilder

public PatternedStringBuilder(String pattern)
Constructor that takes a pattern

Parameters:
pattern -
Method Detail

setPattern

public void setPattern(String pattern)
Write accessor method for pattern

Parameters:
pattern -

getPattern

public String getPattern()
Read accessor method for pattern

Returns:
String

sprintf

public String sprintf(Object... args)
Takes an ellipses of String parameters and builds a String instance from them and the pattern given earlier.

Parameters:
args -
Returns:
String


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.