com.sapportals.wcm.util.config

Class ConfigPropertyDef

java.lang.Object
  extended by com.sapportals.wcm.util.config.ConfigPropertyDef

Deprecated. ConfigPropertyDef is a definition of a configuration property. Copyright (c) SAP AG 2001-2002

public class ConfigPropertyDef
extends Object


Field Summary
static int BOOLEAN
          Deprecated.  
static int EXISTINGFILE
          Deprecated.  
static int EXISTINGPATH
          Deprecated.  
static int INTEGER
          Deprecated.  
static int JAVACLASS
          Deprecated.  
static int STRING
          Deprecated.  
static int URI
          Deprecated.  
static int URL
          Deprecated.  
 
Constructor Summary
ConfigPropertyDef(String name, String displayName, int type, boolean required, String defaultValue)
          Deprecated. Create a ConfigPropertyDef.
 
Method Summary
 String check(ConfigCollection collection)
          Deprecated. Check if a property matches its definition.
 String getDefaultValue()
          Deprecated. Get the default value of the property.
 String getDisplayName()
          Deprecated. Get the display name of the configuration property.
 String getName()
          Deprecated. Get the name of the configuration property.
 int getType()
          Deprecated. Get the type of the configuration property.
 boolean isRequired()
          Deprecated. Chreck if the configuration property is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final int STRING
Deprecated. 
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
Deprecated. 
See Also:
Constant Field Values

EXISTINGPATH

public static final int EXISTINGPATH
Deprecated. 
See Also:
Constant Field Values

EXISTINGFILE

public static final int EXISTINGFILE
Deprecated. 
See Also:
Constant Field Values

JAVACLASS

public static final int JAVACLASS
Deprecated. 
See Also:
Constant Field Values

URL

public static final int URL
Deprecated. 
See Also:
Constant Field Values

URI

public static final int URI
Deprecated. 
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ConfigPropertyDef

public ConfigPropertyDef(String name,
                         String displayName,
                         int type,
                         boolean required,
                         String defaultValue)
Deprecated. 
Create a ConfigPropertyDef.

Parameters:
name - The name (relativ path) of the property
displayName - The display name of the property
type - The type of the property. Valid Types are:
  • STRING: A string
  • INTEGER: An integer
  • EXISTINGPATH: A path on the (local) filesystem
  • EXISTINGFILE: A file on the (local) filesystem
  • JAVACLASS: A java class in the (local) classpath
  • URL: A fully qualified URL
  • URI: An URI
  • BOOLEAN: A boolean value (true/false)
  • required - true if the property is required
    defaultValue - The default value of the property (null if none)
Method Detail

getName

public String getName()
Deprecated. 
Get the name of the configuration property.

Returns:
The name of the configuration property

getDisplayName

public String getDisplayName()
Deprecated. 
Get the display name of the configuration property.

Returns:
The display name of the configuration property

getType

public int getType()
Deprecated. 
Get the type of the configuration property.

Returns:
The type of the configuration property

isRequired

public boolean isRequired()
Deprecated. 
Chreck if the configuration property is required.

Returns:
true if the configuration property is required

getDefaultValue

public String getDefaultValue()
Deprecated. 
Get the default value of the property.

Returns:
The default value of the property

check

public String check(ConfigCollection collection)
Deprecated. 
Check if a property matches its definition.

Parameters:
collection - The configuration collection to be checked
Returns:
a problem report or null if the check passed
Access Rights

This class can be accessed from:


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 2014 SAP AG Complete Copyright Notice