public class DefaultConfiguration extends AbstractConfiguration
Copyright (c) SAP AG 2001-2002
Copyright (c) SAP AG 2001-2002
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
NO_ATTRIBUTES |
protected static IConfiguration[] |
NO_CHILDREN |
| Constructor and Description |
|---|
DefaultConfiguration(String name)
Creates a new instance.
|
DefaultConfiguration(String name,
String location)
Creates a new instance.
|
DefaultConfiguration(String name,
String location,
HashMap attributes)
Deprecated.
as of NW04. Use DefaultConfiguration(final String name, final String location, Map attributes)
instead.
|
DefaultConfiguration(String name,
String location,
Map attributes) |
DefaultConfiguration(String name,
String location,
Map attributes,
com.sapportals.config.fwk.IConfigurable configurable) |
DefaultConfiguration(String name,
String location,
String namespace,
String prefix)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IConfiguration childConfiguration)
Adds a child configuration node to this node.
|
protected void |
checkWriteable() |
protected StringBuffer |
dump(StringBuffer buffer,
int in) |
String |
getAttribute(String name)
Returns the string value of the specified attribute.
|
String[] |
getAttributeNames()
Returns an array of all attribute names.
|
IConfiguration |
getChild(String name,
boolean createNew)
Returns the specified child node.
|
int |
getChildCount()
Returns the number of child nodes.
|
IConfiguration[] |
getChildren()
Returns an array of all child nodes.
|
IConfiguration[] |
getChildren(String name)
Returns an array of all child nodes with the specified name.
|
String |
getLocation()
Returns a string describing the location of the configuration data.
|
String |
getName()
Returns the name of the node (not
null ). |
String |
getNamespace()
Returns the namespace this configuration node belongs to.
|
protected String |
getPrefix()
Returns the prefix of the namespace.
|
String |
getValue()
Returns the string value of this node.
|
boolean |
isEncryptedProperty(String name)
Returns true if a corresponding configurable was provided for this DefaultConfiguration object and the corresponding config attribute is an encrypted one.
|
void |
makeReadOnly()
Sets the read-only flag for this node.
|
void |
removeChild(IConfiguration childConfiguration)
Removes the child configuration node from this node.
|
void |
setAttribute(String name,
String value) |
void |
setValue(String value) |
String |
toString() |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getChild, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLongprotected static final IConfiguration[] NO_CHILDREN
protected static final String[] NO_ATTRIBUTES
public DefaultConfiguration(String name)
name - The name of the configuration node.public DefaultConfiguration(String name, String location, Map attributes, com.sapportals.config.fwk.IConfigurable configurable)
public DefaultConfiguration(String name, String location, HashMap attributes)
name - The name of the configuration node.location - A client specific location string, examples: line number
(for file-based persistence), identifier, URI, database table, ...attributes - A HashMap with the attributespublic DefaultConfiguration(String name, String location)
name - The name of the configuration node.location - A client specific location string, examples: line number
(for file-based persistence), identifier, URI, database table, ...public DefaultConfiguration(String name, String location, String namespace, String prefix)
name - The name of the configuration node.location - A client specific location string, examples: line number
(for file-based persistence), identifier, URI, database table, ...namespace - A namespace stringprefix - No Descriptionpublic String getName()
IConfigurationnull ).null ).public String getNamespace() throws ConfigurationException
IConfigurationConfigurationException - Exception raised in failure situationpublic String getLocation()
IConfigurationpublic String getValue() throws ConfigurationException
IConfigurationConfigurationException - A ConfigurationException might be thrownpublic String[] getAttributeNames()
IConfigurationpublic IConfiguration[] getChildren()
IConfigurationpublic String getAttribute(String name) throws ConfigurationException
IConfigurationname - The name of the attribute.ConfigurationException - If the attribute does not exist.public IConfiguration getChild(String name, boolean createNew)
IConfigurationname - The name of the child node.createNew - If true , an empty IConfiguration
node will be created and returned if the specified child does
not exist. If false , null will be returned
if the specified child doesn't exist.public IConfiguration[] getChildren(String name)
IConfigurationname - the name of the nodes to be returnedpublic void setValue(String value)
public void addChild(IConfiguration childConfiguration)
childConfiguration - child to be addedpublic void removeChild(IConfiguration childConfiguration)
childConfiguration - The child node to remove.public int getChildCount()
public void makeReadOnly()
public boolean isEncryptedProperty(String name)
name - No Descriptionprotected StringBuffer dump(StringBuffer buffer, int in)
protected String getPrefix() throws ConfigurationException
AbstractConfigurationgetPrefix in class AbstractConfigurationConfigurationException - if no prefix was defined (prefix is
null .protected final void checkWriteable()
throws IllegalStateException
IllegalStateException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice