com.sapportals.wcm.util.config

Class ConfigPropertyDef

java.lang.Object
  extended bycom.sapportals.wcm.util.config.ConfigPropertyDef

public class ConfigPropertyDef
extends Object

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


Field Summary
static int BOOLEAN
           
static int EXISTINGFILE
           
static int EXISTINGPATH
           
static int INTEGER
           
static int JAVACLASS
           
static int STRING
           
static int URI
           
static int URL
           
 
Constructor Summary
ConfigPropertyDef(String name, String displayName, int type, boolean required, String defaultValue)
          Create a ConfigPropertyDef.
 
Method Summary
 String check(ConfigCollection collection)
          Check if a property matches its definition.
 String getDefaultValue()
          Get the default value of the property.
 String getDisplayName()
          Get the display name of the configuration property.
 String getName()
          Get the name of the configuration property.
 int getType()
          Get the type of the configuration property.
 boolean isRequired()
          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
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

EXISTINGPATH

public static final int EXISTINGPATH
See Also:
Constant Field Values

EXISTINGFILE

public static final int EXISTINGFILE
See Also:
Constant Field Values

JAVACLASS

public static final int JAVACLASS
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

URI

public static final int URI
See Also:
Constant Field Values

BOOLEAN

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

ConfigPropertyDef

public ConfigPropertyDef(String name,
                         String displayName,
                         int type,
                         boolean required,
                         String defaultValue)
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:
Method Detail

getName

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

Returns:
The name of the configuration property

getDisplayName

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

Returns:
The display name of the configuration property

getType

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

Returns:
The type of the configuration property

isRequired

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

Returns:
true if the configuration property is required

getDefaultValue

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

Returns:
The default value of the property

check

public String check(ConfigCollection collection)
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


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.