Class ComplexPropertyUtils
- java.lang.Object
-
- org.codehaus.cargo.container.internal.util.ComplexPropertyUtils
-
public final class ComplexPropertyUtils extends Object
Parser used for processing complexly defined properties like WebSpherePropertySet.EJB_TO_RES_REF_BINDING.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
joinOnDelimiter(List<String> toJoin, char delimiter)
Convert list of properties to a string representation, based on the specified delimiter.static List<List<String>>
parseProperty(String property)
Parse provided property using property delimiter | and property value delimiter : .static List<String>
parseProperty(String property, String propertyDelimiter)
Parse provided property using defined property delimiter.static List<List<String>>
parseProperty(String property, String propertyDelimiter, String propertyElementDelimiter)
Parse provided property using defined property delimiter and property value delimiter.
-
-
-
Method Detail
-
parseProperty
public static List<List<String>> parseProperty(String property)
Parse provided property using property delimiter | and property value delimiter : .- Parameters:
property
- Property to be parsed.- Returns:
- List of properties containing list of property values.
-
parseProperty
public static List<List<String>> parseProperty(String property, String propertyDelimiter, String propertyElementDelimiter)
Parse provided property using defined property delimiter and property value delimiter.- Parameters:
property
- Property to be parsed.propertyDelimiter
- Property delimiter.propertyElementDelimiter
- Property value delimiter.- Returns:
- List of properties containing list of property values.
-
parseProperty
public static List<String> parseProperty(String property, String propertyDelimiter)
Parse provided property using defined property delimiter.- Parameters:
property
- Property to be parsed.propertyDelimiter
- Property delimiter.- Returns:
- List of properties containing list of property values.
-
joinOnDelimiter
public static String joinOnDelimiter(List<String> toJoin, char delimiter)
Convert list of properties to a string representation, based on the specified delimiter.- Parameters:
toJoin
- object to serialize as a stringdelimiter
- how to separate entries from each other- Returns:
- the properties as a string, delimited by the above
-
-