org.rhq.plugins.apache.util
Class AugeasNodeValueUtil

java.lang.Object
  extended by org.rhq.plugins.apache.util.AugeasNodeValueUtil

public class AugeasNodeValueUtil
extends Object

Author:
Lukas Krejci

Method Summary
static String escape(String value)
          If the supplied value contains single or double quotes, the returned string is enclosed in quotes and the original qoutes "inside" are escaped.
static String unescape(String value)
          If the string is enclosed in double or single quotes, the value inside the quotes is returned with all the escaped characters unescaped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

unescape

public static String unescape(String value)
If the string is enclosed in double or single quotes, the value inside the quotes is returned with all the escaped characters unescaped.

Parameters:
value -
Returns:

escape

public static String escape(String value)
If the supplied value contains single or double quotes, the returned string is enclosed in quotes and the original qoutes "inside" are escaped.

Parameters:
value -
Returns:


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.