SAP NetWeaver '04

com.sapportals.wcm.service.xmlforms
Interface ISaveResult

[contained in: com.sap.km.cm.service.base.par - km.shared.service.xmlforms_api.jar]
public interface ISaveResult

The result of a IXFProject.saveItem() call. It contains information, whether the operation was successfull, and which errors occured. Copyright 2004 SAP AG


Field Summary
static int OK
          Constant representing a successfull operation
static int POST_FAILED
          Constant representing an operation, that failed because of property errors during post
static int VALIDATION_FAILED
          Constant representing an operation, that failed because of validation errors
 
Method Summary
 int getErrorCount()
          Gets the number of total errors, which is the sum of schema errors and property errors
 int getPropertyErrorCount()
          Gets the number of property validation errors
 PropertyValidationError[] getPropertyErrors()
          Gets detailed inforamation about the property validation errors
 int getSchemaErrorCount()
          Gets the number of schema validation errors
 SchemaValidationError[] getSchemaErrors()
          Gets detailed inforamation about the schema validation errors
 int getState()
          Gets the state of the save operation
 

Field Detail

OK

public static final int OK
Constant representing a successfull operation

VALIDATION_FAILED

public static final int VALIDATION_FAILED
Constant representing an operation, that failed because of validation errors

POST_FAILED

public static final int POST_FAILED
Constant representing an operation, that failed because of property errors during post
Method Detail

getState

public int getState()
Gets the state of the save operation
Returns:
one of the constants OK, VALIDATION_FAILED or POST_FAILED

getErrorCount

public int getErrorCount()
Gets the number of total errors, which is the sum of schema errors and property errors
Returns:
the number of errors

getSchemaErrorCount

public int getSchemaErrorCount()
Gets the number of schema validation errors
Returns:
the number of schema validation errors

getPropertyErrorCount

public int getPropertyErrorCount()
Gets the number of property validation errors
Returns:
the number of property validation errors

getSchemaErrors

public SchemaValidationError[] getSchemaErrors()
Gets detailed inforamation about the schema validation errors
Returns:
an array of SchemaValidationError, if schema validation was successfull

getPropertyErrors

public PropertyValidationError[] getPropertyErrors()
Gets detailed inforamation about the property validation errors
Returns:
an array of PropertyValidationError, if property validation was successfull

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
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.