| |
|
| java.lang.Object com.sun.jbi.util.ComponentConfigurationHelper
ComponentConfigurationHelper | public class ComponentConfigurationHelper (Code) | | This is a utility class to convert a set of properties into
application variables or application configuration and vice versa.
|
CONFIGURATION_NS | final public static String CONFIGURATION_NS(Code) | | Configuration NS
|
DEFAULT_APP_VAR_TYPE | final public static String DEFAULT_APP_VAR_TYPE(Code) | | |
ComponentConfigurationHelper | public ComponentConfigurationHelper()(Code) | | Constructor
|
convertCompositeDataToProperties | public Properties convertCompositeDataToProperties(CompositeData cd)(Code) | | Convert a CompositeData to Properties.
Parameters: cd - the composite data to convert to Properties the properties representation of the CompositeData |
convertPropertiesToCompositeData | public CompositeData convertPropertiesToCompositeData(Properties props, CompositeType appConfigType) throws Exception(Code) | | Parameters: props - the properties to convert to a CompositeType Parameters: appConfigType - application configuration CompositeType throws: Exception - if the properties cannot be completely mapped into the CompositeType |
convertToApplicationVariableProperty | public Properties convertToApplicationVariableProperty(CompositeData appVar) throws Exception(Code) | | Convert Apllication Variables CompositeData to a set of Properties.
Parameters: appVar - - application variable composite |
convertToApplicationVariablesProperties | public Properties convertToApplicationVariablesProperties(TabularData appVars) throws Exception(Code) | | Convert Apllication Variables TabularData to a set of Properties.
|
convertToApplicationVariablesTable | public TabularData convertToApplicationVariablesTable(Properties props) throws Exception(Code) | | Convert a Properties Object to a Application Variable TabularData.
The property name is the name of the Property and the value is
of the Pattern "[type]value"
Parameters: props - - the properties to convert to TabularData. the TabularData constructed from the Properties |
convertToString | protected String convertToString(java.util.Collection colxn)(Code) | | Convert the objects in the collection to string.
Parameters: set - a non-empty set |
createApplicationVariableComposite | public CompositeData createApplicationVariableComposite(String name, String value, String type) throws Exception(Code) | | Create a Application Variable Composite from the passed in name, value and type
Parameters: name - - the name Parameters: type - - the type string Parameters: value - - the value the CompositeData constructed from the parameters |
createApplicationVariableComposite | public CompositeData createApplicationVariableComposite(String name, String typeAndValueStr) throws Exception(Code) | | Create a Application Variable Composite from the passed in name, and the property
value string which is of format : [type]value
Parameters: name - - the name Parameters: typeAndValueStr - - string which is of format : [type]value the CompositeData constructed from the parameters |
getApplicationVariableItemNames | public String[] getApplicationVariableItemNames()(Code) | | the application variables item names |
getApplicationVariableTabularType | public TabularType getApplicationVariableTabularType()(Code) | | the Application Variables Tabular Type |
getApplicationVariablesType | public CompositeType getApplicationVariablesType()(Code) | | the CompositeType for Application Variables. |
isAppConfigSupported | public boolean isAppConfigSupported(Document configDoc)(Code) | | Parameters: configDoc - - configuration xml document true if the components configuration document declaressupport for application configuration |
isAppVarsSupported | public boolean isAppVarsSupported(Document configDoc)(Code) | | Parameters: configDoc - - configuration xml document true if the components configuration document declaressupport for application variables |
isComponentConfigSupported | public boolean isComponentConfigSupported(Document configDoc)(Code) | | Parameters: configDoc - - configuration xml document true if the components configuration document declaressupport for component configuration attributes |
isPassword | public boolean isPassword(String attributeName, Document configDoc) throws Exception(Code) | | Parameters: attributeName - - name of the property Parameters: configDoc - - configuration xml document true if a component configuration attribute is a passwordfiled |
isRequired | public boolean isRequired(String attributeName, Document configDoc) throws Exception(Code) | | Parameters: attributeName - - name of the property Parameters: configDoc - - configuration xml document true if a component configuration attribute is a required field |
|
|
|