|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.crt.configuration.AbstractConfiguration
com.sapportals.wcm.crt.configuration.DefaultConfiguration
public class DefaultConfiguration
This is the default implementation of a configuration node.
Copyright (c) SAP AG 2001-2002
Copyright (c) SAP AG 2001-2002
| Field Summary | |
|---|---|
protected static String[] |
NO_ATTRIBUTES
|
protected static IConfiguration[] |
NO_CHILDREN
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.sapportals.wcm.crt.configuration.AbstractConfiguration |
|---|
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getChild, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final IConfiguration[] NO_CHILDREN
protected static final String[] NO_ATTRIBUTES
| Constructor Detail |
|---|
public DefaultConfiguration(String name)
name - The name of the configuration node.
public DefaultConfiguration(String name,
String location,
Map attributes)
public DefaultConfiguration(String name,
String location,
Map attributes,
com.sapportals.config.fwk.IConfigurable configurable)
public DefaultConfiguration(String name,
String location,
HashMap attributes)
public 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 - | Method Detail |
|---|
public String getName()
IConfigurationnull ).
null ).
public String getNamespace()
throws ConfigurationException
IConfiguration
ConfigurationException - Exception raised in failure situationpublic String getLocation()
IConfiguration
public String getValue()
throws ConfigurationException
IConfiguration
ConfigurationExceptionpublic String[] getAttributeNames()
IConfiguration
public IConfiguration[] getChildren()
IConfiguration
public String getAttribute(String name)
throws ConfigurationException
IConfiguration
name - The name of the attribute.
ConfigurationException - If the attribute does not exist.
public IConfiguration getChild(String name,
boolean createNew)
IConfiguration
name - 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)
IConfiguration
name - the name of the nodes to be returned
public void setValue(String value)
public void setAttribute(String name,
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 -
protected StringBuffer dump(StringBuffer buffer,
int in)
public String toString()
toString in class Object
protected String getPrefix()
throws ConfigurationException
AbstractConfiguration
getPrefix 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-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||