public class ModelConfig extends XMLMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MODEL_CONFIG_DOCNAME
The name of the root element.
|
static java.lang.String |
MODEL_CONFIG_DTD
The underlying DTD.
|
Constructor and Description |
---|
ModelConfig()
Constructs an instance based on a given DTD.
|
ModelConfig(DeployProps version,
java.util.Vector<java.io.File> resources,
java.io.File basedir)
Constructs a descriptor instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Provides the export date from the configuration descriptor.
|
java.lang.String |
getProductBuild()
Provides the product build from the configuration descriptor.
|
java.lang.String |
getProductID()
Provides the product identifier from the configuration descriptor.
|
java.lang.String |
getProductName()
Provides the product name from the configuration descriptor.
|
java.lang.String |
getProductVersion()
Provides the product version from the configuration descriptor.
|
java.util.Vector<java.lang.String> |
getResources()
Provides the resources from the configuration descriptor.
|
canProcess, getAttribute, getAttributeValue, getContents, getDocument, getDTD, getElement, getElements, getElementValue, getEncoding, getIntFunctionResult, isArmed, isValid, printDocument, read, read, setEncoding, setFormat, write, write
public static final java.lang.String MODEL_CONFIG_DTD
public static final java.lang.String MODEL_CONFIG_DOCNAME
public ModelConfig()
public ModelConfig(DeployProps version, java.util.Vector<java.io.File> resources, java.io.File basedir)
Version
object, the date is
the current date and time, and the resource map is created from the given set of files
and directories relative to the given base directory.
version
- The application version infosresources
- The container with resource filesbasedir
- The directory hosting the configurationjava.lang.NullPointerException
- If parameters are null
java.lang.IllegalArgumentException
- If at least one of the parameters is invalidpublic java.lang.String getProductName()
null
or emptypublic java.lang.String getProductID()
null
or emptypublic java.lang.String getProductVersion()
null
or emptypublic java.lang.String getProductBuild()
null
or emptypublic java.util.Date getDate()
null
or emptypublic java.util.Vector<java.lang.String> getResources()
null
or emptyCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.