public class XmlConfigurationItem extends Object implements ConfigurationItem
ConfigurationItem
.Constructor and Description |
---|
XmlConfigurationItem(String location,
String xmlText,
ConfigurationContext context)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getConfiguration()
Obtains the configuration that this represents.
|
ConfigurationContext |
getContext()
Obtains the
ConfigurationContext for this
ConfigurationItem . |
String |
getLocation()
Obtains the relative location for this
ConfigurationItem within
its ConfigurationContext . |
void |
setConfiguration(InputStream configuration)
Specifies the configuration that this is to represent.
|
public XmlConfigurationItem(String location, String xmlText, ConfigurationContext context)
location
- Location.xmlText
- XML text.context
- ConfigurationContext
.public String getLocation()
ConfigurationItem
Obtains the relative location for this ConfigurationItem
within
its ConfigurationContext
.
This value is used in the equality of ConfigurationItem
instances
within the ConfigurationContext
.
getLocation
in interface ConfigurationItem
ConfigurationItem
within its
ConfigurationContext
.public InputStream getConfiguration() throws Exception
ConfigurationItem
getConfiguration
in interface ConfigurationItem
Exception
- If fails to obtain the configuration.public void setConfiguration(InputStream configuration) throws Exception
ConfigurationItem
setConfiguration
in interface ConfigurationItem
configuration
- Configuration.Exception
- If fails to set the configuration.ReadOnlyConfigurationException
- Should the configuration be read-only.public ConfigurationContext getContext()
ConfigurationItem
ConfigurationContext
for this
ConfigurationItem
.getContext
in interface ConfigurationItem
ConfigurationContext
for this ConfigurationItem
.Copyright © 2005–2016. All rights reserved.