public class ComponentConfigurationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_NS
Configuration NS
|
static String |
DEFAULT_APP_VAR_TYPE |
| Constructor and Description |
|---|
ComponentConfigurationHelper()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
convertCompositeDataToProperties(CompositeData cd)
Convert a CompositeData to Properties.
|
CompositeData |
convertPropertiesToCompositeData(Properties props,
CompositeType appConfigType) |
Properties |
convertToApplicationVariableProperty(CompositeData appVar)
Convert Apllication Variables CompositeData to a set of Properties.
|
Properties |
convertToApplicationVariablesProperties(TabularData appVars)
Convert Apllication Variables TabularData to a set of Properties.
|
TabularData |
convertToApplicationVariablesTable(Properties props)
Convert a Properties Object to a Application Variable TabularData.
|
protected String |
convertToString(Collection colxn)
Convert the objects in the collection to string.
|
CompositeData |
createApplicationVariableComposite(String name,
String typeAndValueStr)
Create a Application Variable Composite from the passed in name, and the property
value string which is of format : [type]value
|
CompositeData |
createApplicationVariableComposite(String name,
String value,
String type)
Create a Application Variable Composite from the passed in name, value and type
|
String |
getActualAttributeName(String name) |
String[] |
getApplicationVariableItemNames() |
CompositeType |
getApplicationVariablesType() |
TabularType |
getApplicationVariableTabularType() |
String |
getAppVarType(String str,
String defStr) |
String |
getAppVarValue(String str) |
boolean |
isAppConfigSupported(Document configDoc) |
boolean |
isAppVarsSupported(Document configDoc) |
boolean |
isComponentConfigSupported(Document configDoc) |
boolean |
isPassword(String attributeName,
Document configDoc) |
boolean |
isRequired(String attributeName,
Document configDoc) |
public static final String DEFAULT_APP_VAR_TYPE
public static final String CONFIGURATION_NS
public CompositeType getApplicationVariablesType()
public TabularType getApplicationVariableTabularType()
public String[] getApplicationVariableItemNames()
public TabularData convertToApplicationVariablesTable(Properties props) throws Exception
props - - the properties to convert to TabularData.Exceptionpublic Properties convertToApplicationVariablesProperties(TabularData appVars) throws Exception
Exceptionpublic Properties convertToApplicationVariableProperty(CompositeData appVar) throws Exception
appVar - - application variable compositeExceptionpublic CompositeData createApplicationVariableComposite(String name, String value, String type) throws Exception
name - - the nametype - - the type stringvalue - - the valueExceptionpublic CompositeData createApplicationVariableComposite(String name, String typeAndValueStr) throws Exception
name - - the nametypeAndValueStr - - string which is of format : [type]valueExceptionpublic String getAppVarType(String str, String defStr) throws Exception
Exceptionpublic String getAppVarValue(String str) throws Exception
Exceptionpublic Properties convertCompositeDataToProperties(CompositeData cd)
cd - the composite data to convert to Propertiespublic CompositeData convertPropertiesToCompositeData(Properties props, CompositeType appConfigType) throws Exception
props - the properties to convert to a CompositeTypeappConfigType - application configuration CompositeTypeException - if the properties cannot be completely mapped into the
CompositeTypepublic boolean isPassword(String attributeName, Document configDoc) throws Exception
attributeName - - name of the propertyconfigDoc - - configuration xml documentExceptionpublic boolean isRequired(String attributeName, Document configDoc) throws Exception
attributeName - - name of the propertyconfigDoc - - configuration xml documentExceptionpublic boolean isComponentConfigSupported(Document configDoc)
configDoc - - configuration xml documentpublic boolean isAppVarsSupported(Document configDoc)
configDoc - - configuration xml documentpublic boolean isAppConfigSupported(Document configDoc)
configDoc - - configuration xml documentprotected String convertToString(Collection colxn)
set - a non-empty setCopyright © 2011-2016 OpenESB Community. All Rights Reserved.