Package org.fugerit.java.core.cfg.xml
Class DataListCatalogConfig
- java.lang.Object
-
- org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
-
- org.fugerit.java.core.cfg.xml.GenericListCatalogConfig<String>
-
- org.fugerit.java.core.cfg.xml.DataListCatalogConfig
-
- All Implemented Interfaces:
Serializable
,ConfigurableObject
,LogObject
- Direct Known Subclasses:
XMLSchemaCatalogConfig
public class DataListCatalogConfig extends GenericListCatalogConfig<String>
Class for loading an xml configuration in the form of :<!-- key/value attributes in this list are accessed through the method getGeneralProps() --> <data-catalog-config key1="value1" key2="value"> <!-- data list ids are accessed through the method getIdSet() [ex. 1, 2, 3] while specific entry list through the method getDataList() [ex. 1A, 1B] --> <data-list id="1"> <data id="1A"/> <data id="1B"/> </data-list> <data-list id="2"> <data id="2A"/> </data-list> <data-list id="3"> <data id="3A"/> <data id="3B"/> <data id="3C"/> </data-list> </data-catalog-config>
- Author:
- fugerit
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.fugerit.java.core.cfg.xml.GenericListCatalogConfig
ATT_BEAN_MODE, ATT_BEAN_MODE_DEFAULT, ATT_CONFIG_PROVIDER_NAME, ATT_DATA_CATALOG_CONFIG, ATT_LIST_TYPE, ATT_TAG_DATA, ATT_TAG_DATA_LIST, ATT_TAG_MODULE, ATT_TAG_MODULE_CONF_ID, ATT_TAG_MODULE_CONF_MODE, ATT_TAG_MODULE_CONF_MODE_CL, ATT_TAG_MODULE_CONF_MODE_FILE, ATT_TAG_MODULE_CONF_PATH, ATT_TAG_MODULE_CONF_UNSAFE, ATT_TAG_MODULE_LIST, ATT_TAG_TYPE_STRING, ATT_TRY_XSD_VALIDATION, ATT_TRY_XSD_VALIDATION_DEFAULT, ATT_TRY_XSD_VALIDATION_FALSE, ATT_TRY_XSD_VALIDATION_TRUE, ATT_TYPE, attTagData, attTagDataList, CONFIG_CHECK_DUPLICATE_ID, CONFIG_CHECK_DUPLICATE_ID_DEFAULT, CONFIG_CHECK_DUPLICATE_ID_FAIL, CONFIG_CHECK_DUPLICATE_ID_FAIL_ON_SET, CONFIG_CHECK_DUPLICATE_ID_WARN, CONFIG_CHECK_ENTRY_DUPLICATE_ID
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
logger
-
-
Constructor Summary
Constructors Constructor Description DataListCatalogConfig()
Creates a new DataListCatalogConfig wth default configuration.DataListCatalogConfig(String attTagDataList, String attTagData)
Creates a new DataListCatalogConfig
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataListCatalogConfig
loadConfig(InputStream is)
Worker method for loading an xml from an input streamprotected static DataListCatalogConfig
loadConfig(InputStream is, DataListCatalogConfig config)
Worker method for loading an xml from an input stream-
Methods inherited from class org.fugerit.java.core.cfg.xml.GenericListCatalogConfig
configure, configure, customEntryHandling, customEntryHandling, getDataList, getEntryIdCheck, getIdSet, getLogger, hasDefinition, load, newCollection, validate
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
configureProperties, configureXML, setConfigProvider
-
-
-
-
Method Detail
-
loadConfig
protected static DataListCatalogConfig loadConfig(InputStream is, DataListCatalogConfig config) throws Exception
Worker method for loading an xml from an input stream- Parameters:
is
- input sourceconfig
- config object- Returns:
- the object configured
- Throws:
Exception
- in case of issues
-
loadConfig
public static DataListCatalogConfig loadConfig(InputStream is) throws Exception
Worker method for loading an xml from an input stream- Parameters:
is
- input source- Returns:
- the object configured
- Throws:
Exception
- in case of issues
-
-