public class XMLResourceDescriptor extends Object implements com.sdl.delivery.configuration.ResourceDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_FILE_NAME_PROPERTY_KEY
Property key to access the XML schema configuration file name.
|
static String |
STYLESHEET_FILE_NAME_PROPERTY_KEY
Property key to access the XSLT stylesheet of a configuration file.
|
static String |
XML_CONFIGURATION_TYPE
It indicates that the 'Resource Descriptor' is of type 'XML Configuration'.
|
static String |
XML_FILE_NAME_PROPERTY_KEY
Property key to access the XML configuration file name.
|
Constructor and Description |
---|
XMLResourceDescriptor(String xmlFileName)
Creates an instance of
XMLResourceDescriptor with the given XML file name. |
XMLResourceDescriptor(String xmlFileName,
String schemaFileName)
Creates an instance of
XMLResourceDescriptor with the given XML and schema file name(s). |
XMLResourceDescriptor(String xmlFileName,
String schemaFileName,
String stylesheetFileName)
Creates an instance of
XMLResourceDescriptor with the given XML, schema and stylesheet transformation
file name(s). |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String propertyName)
Get the value of a 'resource property'.
|
String |
getType()
Get the 'resource type', for example "propertyFile", "database", "webService", etc.
|
public static final String XML_CONFIGURATION_TYPE
public static final String XML_FILE_NAME_PROPERTY_KEY
public static final String SCHEMA_FILE_NAME_PROPERTY_KEY
public static final String STYLESHEET_FILE_NAME_PROPERTY_KEY
public XMLResourceDescriptor(String xmlFileName)
XMLResourceDescriptor
with the given XML file name.xmlFileName
- The given XML file name. It can not be null
neither empty.public XMLResourceDescriptor(String xmlFileName, String schemaFileName)
XMLResourceDescriptor
with the given XML and schema file name(s).xmlFileName
- The given XML file name. It can not be null
neither empty.schemaFileName
- The given schema file name.public XMLResourceDescriptor(String xmlFileName, String schemaFileName, String stylesheetFileName)
XMLResourceDescriptor
with the given XML, schema and stylesheet transformation
file name(s).xmlFileName
- The given XML file name. It can not be null
neither empty.schemaFileName
- The given schema file name.stylesheetFileName
- The given stylesheet transformation file name.public String getType()
com.sdl.delivery.configuration.ResourceDescriptor
getType
in interface com.sdl.delivery.configuration.ResourceDescriptor
public String getProperty(String propertyName)
com.sdl.delivery.configuration.ResourceDescriptor
getProperty
in interface com.sdl.delivery.configuration.ResourceDescriptor
propertyName
- The name of a 'resource property'.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries