org.apache.felix.ipojo.parser
Class ParseUtils

java.lang.Object
  extended by org.apache.felix.ipojo.parser.ParseUtils

public final class ParseUtils
extends Object

Parser Utility Methods. This class contains helper method to parse iPOJO metadata.

Author:
Felix Project Team

Constructor Summary
ParseUtils()
           
 
Method Summary
static String[] parseArrays(String str)
          Parses the iPOJO string form of an array as {a, b, c} or [a, b, c].
static List parseArraysAsList(String str)
          Parses the string form of an array as {a, b, c} or [a, b, c] as a list.
static String[] split(String toSplit, String separator)
          Split method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseUtils

public ParseUtils()
Method Detail

parseArrays

public static String[] parseArrays(String str)
Parses the iPOJO string form of an array as {a, b, c} or [a, b, c].

Parameters:
str - the string form
Returns:
the resulting string array

parseArraysAsList

public static List parseArraysAsList(String str)
Parses the string form of an array as {a, b, c} or [a, b, c] as a list.

Parameters:
str - the string form
Returns:
the resulting list

split

public static String[] split(String toSplit,
                             String separator)
Split method. This method is equivalent of the String.split in java 1.4 The result array contains 'trimmed' String

Parameters:
toSplit - the String to split
separator - the separator
Returns:
the split array


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.