public class ResourceConverter extends Object
Constructor and Description |
---|
ResourceConverter() |
Modifier and Type | Method and Description |
---|---|
Resource |
fromProperties(Properties properties)
Construct a Resource from a list of properties.
|
Resource |
fromPropertyString(String resourceInformation)
Construct a Resource from a single String.
|
String |
getParametersAsASemicolonDelimitedString(Resource data)
tests to see if the value is null before attempting to join the database properties on a
semicolon.
|
Properties |
toProperties(Resource data)
Get a properties object containing all of the members of this Resource object.
|
String |
toPropertyString(Resource data)
Get a string representation of this Resource.
|
public Resource fromPropertyString(String resourceInformation)
CreateDatabase=create;DatabaseName=TEST
.resourceInformation
- A string, really a list of properties, representing a ResourcePropertyUtils.splitPropertiesOnPipe(String)
public Resource fromProperties(Properties properties)
properties
- A list of properties representing this ResourcePropertyUtils.splitPropertiesOnPipe(String)
public String toPropertyString(Resource data)
data
- the Resource we are serializingPropertyUtils#joinPropertiesOnPipe(java.util.Properties)
public Properties toProperties(Resource data)
data
- the Resource we are serializingpublic String getParametersAsASemicolonDelimitedString(Resource data)
data
- the Resource we are serializingCopyright © 2004-2013 Codehaus. All Rights Reserved.