public String[] getText(String xpath) { DDBean[] beans = getChildBean(xpath); if (beans == null) { return null; } String[] text = new String[beans.length]; for (int i = 0; i < beans.length; i++) { text[i] = beans[i].getText(); } return text; }
public String[] getText(String xpath) { DDBean[] beans = getChildBean(xpath); if (beans == null) { return null; } String[] text = new String[beans.length]; for (int i = 0; i < beans.length; i++) { text[i] = beans[i].getText(); } return text; }
public String getConfigPropertyType() { return getDDBean().getText("config-property/config-property-type")[0]; }
public String getConfigPropertyType() { return getDDBean().getText("config-property/config-property-type")[0]; }
public RemoteRefDConfigBean(DDBean ddBean, XmlObject ref, String namePath) { super(ddBean, ref); this.ref = ref; assert ddBean.getChildBean(namePath)[0].getText().equals(getRefName()); }
public LocalRefDConfigBean(DDBean ddBean, XmlObject ref, String namePath) { super(ddBean, ref); this.ref = ref; assert ddBean.getChildBean(namePath)[0].getText().equals(getRefName()); }
public ConfigPropertySettingDConfigBean(DDBean ddBean, GerConfigPropertySettingType configPropertySetting) { super(ddBean, configPropertySetting); String name = ddBean.getText("config-property-name")[0]; if (configPropertySetting.getName() == null) { configPropertySetting.setName(name); String[] values = ddBean.getText("config-property-value"); if (values != null && values.length == 1) { configPropertySetting.setStringValue(values[0]); } } else { assert name.equals(configPropertySetting.getName()); } }
private void configure(DDBean adminDDBean, GerAdminobjectType adminXml) { adminXml.setAdminobjectClass(adminDDBean.getText("adminobject-class")[0]); adminXml.setAdminobjectInterface(adminDDBean.getText("adminobject-interface")[0]); GerAdminobjectInstanceType[] xmls = adminXml.getAdminobjectInstanceArray(); adminObjectInstance = new AdminObjectInstance[xmls.length]; for (int i = 0; i < xmls.length; i++) { adminObjectInstance[i] = new AdminObjectInstance(adminDDBean, xmls[i]); } }
private void setConfigPropertyName(DDBean configPropertyBean) { if (configPropertyBean == null) { setConfigPropertyName((String) null); } else { setConfigPropertyName(configPropertyBean.getText()); } }
private void configure(DDBean adminDDBean, GerAdminobjectType adminXml) { adminXml.setAdminobjectClass(adminDDBean.getText("adminobject-class")[0]); adminXml.setAdminobjectInterface(adminDDBean.getText("adminobject-interface")[0]); GerAdminobjectInstanceType[] xmls = adminXml.getAdminobjectInstanceArray(); adminObjectInstance = new AdminObjectInstance[xmls.length]; for (int i = 0; i < xmls.length; i++) { adminObjectInstance[i] = new AdminObjectInstance(adminDDBean, xmls[i]); } }
public ConfigPropertySettingDConfigBean(DDBean ddBean, GerConfigPropertySettingType configPropertySetting) { super(ddBean, configPropertySetting); String name = ddBean.getText("config-property-name")[0]; if (configPropertySetting.getName() == null) { configPropertySetting.setName(name); String[] values = ddBean.getText("config-property-value"); if (values != null && values.length == 1) { configPropertySetting.setStringValue(values[0]); } } else { assert name.equals(configPropertySetting.getName()); } }
private void setConfigPropertyName(DDBean configPropertyBean) { if (configPropertyBean == null) { setConfigPropertyName((String) null); } else { setConfigPropertyName(configPropertyBean.getText()); } }
private void setConfigPropertyType(DDBean configPropertyBean) { if (configPropertyBean == null) { setConfigPropertyType((String) null); } else { setConfigPropertyType(configPropertyBean.getText()); } }
private void setConfigPropertyType(DDBean configPropertyBean) { if (configPropertyBean == null) { setConfigPropertyType((String) null); } else { setConfigPropertyType(configPropertyBean.getText()); } }
void configure(DDBean configProperty, GerConfigPropertySettingType property, boolean setDefault) { this.configProperty = configProperty; setXmlObject(property); final String name = configProperty.getText("config-property-name")[0]; getPropertySetting().setName(name); String[] test = configProperty.getText("config-property-value"); if(test != null && test.length == 1) { defaultValue = test[0]; } else { defaultValue = null; } if(setDefault) { getPropertySetting().setStringValue(defaultValue); } }
void configure(DDBean configProperty, GerConfigPropertySettingType property, boolean setDefault) { this.configProperty = configProperty; setXmlObject(property); final String name = configProperty.getText("config-property-name")[0]; getPropertySetting().setName(name); String[] test = configProperty.getText("config-property-value"); if(test != null && test.length == 1) { defaultValue = test[0]; } else { defaultValue = null; } if(setDefault) { getPropertySetting().setStringValue(defaultValue); } }
void configure(DDBean resourceAdapter, GerConnectionDefinitionType definition) { this.resourceAdapter = resourceAdapter; setXmlObject(definition); //todo: handle unmatched interfaces below instances = new ConnectionDefinitionInstance[definition.getConnectiondefinitionInstanceArray().length]; DDBean[] beans = resourceAdapter.getChildBean("outbound-resourceadapter/connection-definition"); DDBean match = null; for (int i = 0; i < beans.length; i++) { DDBean bean = beans[i]; if(bean.getText("connectionfactory-interface")[0].equals(definition.getConnectionfactoryInterface())) { match = bean; break; } } for (int i = 0; i < instances.length; i++) { GerConnectiondefinitionInstanceType gerInstance = definition.getConnectiondefinitionInstanceArray()[i]; instances[i] = new ConnectionDefinitionInstance(match, gerInstance); } }
void configure(DDBean resourceAdapter, GerConnectionDefinitionType definition) { this.resourceAdapter = resourceAdapter; setXmlObject(definition); //todo: handle unmatched interfaces below instances = new ConnectionDefinitionInstance[definition.getConnectiondefinitionInstanceArray().length]; DDBean[] beans = resourceAdapter.getChildBean("outbound-resourceadapter/connection-definition"); DDBean match = null; for (int i = 0; i < beans.length; i++) { DDBean bean = beans[i]; if(bean.getText("connectionfactory-interface")[0].equals(definition.getConnectionfactoryInterface())) { match = bean; break; } } for (int i = 0; i < instances.length; i++) { GerConnectiondefinitionInstanceType gerInstance = definition.getConnectiondefinitionInstanceArray()[i]; instances[i] = new ConnectionDefinitionInstance(match, gerInstance); } }
public ConnectionDefinitionDConfigBean(DDBean ddBean, GerConnectionDefinitionType connectionDefinition) { super(ddBean, connectionDefinition); String connectionfactoryInterface = ddBean.getText("connectionfactory-interface")[0]; if (connectionDefinition.getConnectionfactoryInterface() == null) { connectionDefinition.setConnectionfactoryInterface(connectionfactoryInterface); } else { assert connectionfactoryInterface.equals(connectionDefinition.getConnectionfactoryInterface()); } // Get initial list of instances instances = new ConnectionDefinitionInstance[getConnectionDefinition().getConnectiondefinitionInstanceArray().length]; for (int i = 0; i < instances.length; i++) { instances[i] = new ConnectionDefinitionInstance(); instances[i].initialize(getConnectionDefinition().getConnectiondefinitionInstanceArray(i), this); } }
public ConnectionDefinitionDConfigBean(DDBean ddBean, GerConnectionDefinitionType connectionDefinition) { super(ddBean, connectionDefinition); String connectionfactoryInterface = ddBean.getText("connectionfactory-interface")[0]; if (connectionDefinition.getConnectionfactoryInterface() == null) { connectionDefinition.setConnectionfactoryInterface(connectionfactoryInterface); } else { assert connectionfactoryInterface.equals(connectionDefinition.getConnectionfactoryInterface()); } // Get initial list of instances instances = new ConnectionDefinitionInstance[getConnectionDefinition().getConnectiondefinitionInstanceArray().length]; for (int i = 0; i < instances.length; i++) { instances[i] = new ConnectionDefinitionInstance(); instances[i].initialize(getConnectionDefinition().getConnectiondefinitionInstanceArray(i), this); } }