com.sap.mdm.commands
Class SetUnicodeNormalizationCommand

java.lang.Object
  extended bycom.sap.mdm.commands.AbstractCommandBase
      extended bycom.sap.mdm.commands.AbstractCommand
          extended bycom.sap.mdm.commands.SetUnicodeNormalizationCommand
All Implemented Interfaces:
Command, PassportSupport

public class SetUnicodeNormalizationCommand
extends AbstractCommand

A command to set the Unicode normalization to use for the lifetime of the session. It should be set after the session is authenticated.

Unicode normalization is important when a text string is represented differently depending on the normalization used. The MDM server always store text strings in one normalization format. An user providing a text string to the MDM server and later on tries to retrieve back the same text string might get the text string back in a different normalization. To resolve this issue, the user can use this class to specify the normalization the user wants to work with. The MDM server will always return text strings in the normalization specified by this class.


Field Summary
static int NORMALIZATION_COMPOSED
           
static int NORMALIZATION_DECOMPOSED
           
static int NOT_NORMALIZED
           
 
Constructor Summary
SetUnicodeNormalizationCommand(ConnectionAccessor connection)
          Creates a new instance for this command.
 
Method Summary
 int getNormalizationType()
          Returns the normalization type.
 void setNormalizationType(int normalizationType)
          Sets the normalization type (required).
 
Methods inherited from class com.sap.mdm.commands.AbstractCommand
getSession, setSession
 
Methods inherited from class com.sap.mdm.commands.AbstractCommandBase
execute, getPassport, isCommandComplete, setPassport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMALIZATION_COMPOSED

public static final int NORMALIZATION_COMPOSED
See Also:
Constant Field Values

NORMALIZATION_DECOMPOSED

public static final int NORMALIZATION_DECOMPOSED
See Also:
Constant Field Values

NOT_NORMALIZED

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

SetUnicodeNormalizationCommand

public SetUnicodeNormalizationCommand(ConnectionAccessor connection)
Creates a new instance for this command.

Parameters:
connection - the connections to the server.
Method Detail

getNormalizationType

public int getNormalizationType()
Returns the normalization type.

Returns:
a normalization type

setNormalizationType

public void setNormalizationType(int normalizationType)
Sets the normalization type (required).

Parameters:
normalizationType - a normalization type


Copyright 2004-2007 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.