public class MasterConfigurationParser
extends java.lang.Object
Master configurations are used to define ConfiguredTaurusSystems.
| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_FLAT
Flag for master configurations in flat format.
|
static int |
FORMAT_XML
Flag for master configurations in XML format.
|
static java.lang.String |
TAG_APPLICATION
Master configuration keyword: Application
|
static java.lang.String |
TAG_END_APPLICATION
Master configuration keyword: Application end tag
|
static java.lang.String |
TAG_END_User
Master configuration keyword: User end tag
|
static java.lang.String |
TAG_INFO
Master configuration keyword: Info
|
static java.lang.String |
TAG_MODEL_LOCATION
Master configuration keyword: Model location
|
static java.lang.String |
TAG_MODEL_VERSION
Master configuration keyword: Version
|
static java.lang.String |
TAG_NAME_XML
Master configuration keyword: Application name (XML attribute)
|
static java.lang.String |
TAG_PARMFILE
Master configuration keyword: Parameter file location
|
static java.lang.String |
TAG_STATIC_PROPERTY
Master configuration keyword: Static property
|
static java.lang.String |
TAG_STATIC_PROPERTY_ID
Master configuration keyword: Static property ID XML attribute
|
static java.lang.String |
TAG_STATIC_PROPERTY_VALUE
Master configuration keyword: Static property value XML attribute
|
static java.lang.String |
TAG_SYSTEM
Master configuration keyword: System
|
static java.lang.String |
TAG_User
Master configuration keyword: User
|
| Constructor and Description |
|---|
MasterConfigurationParser(java.io.InputStream pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
Creates a new master configuration parser.
|
MasterConfigurationParser(java.lang.String[] pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
Creates a new master configuration parser.
|
MasterConfigurationParser(java.lang.String pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
Creates a new master configuration parser.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getFormatFromFileName(java.lang.String fileName)
Guesses the master configuration file format from the given file name
(which does not need to be an absolute path).
|
java.util.List<TaurusSystemPersistableProxy> |
parseMasterConfiguration()
Parses the given master configuration.
|
public static final int FORMAT_XML
public static final int FORMAT_FLAT
public static final java.lang.String TAG_SYSTEM
public static final java.lang.String TAG_INFO
public static final java.lang.String TAG_User
public static final java.lang.String TAG_APPLICATION
public static final java.lang.String TAG_NAME_XML
public static final java.lang.String TAG_MODEL_LOCATION
public static final java.lang.String TAG_STATIC_PROPERTY
public static final java.lang.String TAG_MODEL_VERSION
public static final java.lang.String TAG_PARMFILE
public static final java.lang.String TAG_END_APPLICATION
public static final java.lang.String TAG_END_User
public static final java.lang.String TAG_STATIC_PROPERTY_ID
public static final java.lang.String TAG_STATIC_PROPERTY_VALUE
public MasterConfigurationParser(java.io.InputStream pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
pMasterConfig - the master configurationpMasterConfigFormat - the format of the master configuration (FORMAT_XML or
FORMAT_FLAT)pImg - the corresponding ISystemImagepublic MasterConfigurationParser(java.lang.String pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
pMasterConfig - the master configurationpMasterConfigFormat - the format of the master configuration (FORMAT_XML or
FORMAT_FLAT)pImg - the corresponding ISystemImagepublic MasterConfigurationParser(java.lang.String[] pMasterConfig,
int pMasterConfigFormat,
ISystemImage pImg)
pMasterConfig - the master configurationpMasterConfigFormat - the format of the master configuration (FORMAT_XML or
FORMAT_FLAT)pImg - the corresponding ISystemImagepublic java.util.List<TaurusSystemPersistableProxy> parseMasterConfiguration() throws TaurusCoreException
TaurusCoreException - if reading or parsing the master configuration failspublic static int getFormatFromFileName(java.lang.String fileName)
fileName - the master configuration file nameFORMAT_XML if the file name
ends with .xml,
FORMAT_FLAT if the file name
ends with .txt and -1 if the format
cannot be determined.Copyright © 2015 Micro Focus GmbH. All rights reserved.