com.sap.mdm.data
Class MultilingualString

java.lang.Object
  extended bycom.sap.mdm.internal.io.Archivable
      extended bycom.sap.mdm.data.MultilingualString
All Implemented Interfaces:
Cloneable

public class MultilingualString
extends com.sap.mdm.internal.io.Archivable
implements Cloneable

MultilingualString is a container for a list of strings of various language layers.


Constructor Summary
MultilingualString()
          Empty constructor.
MultilingualString(MultilingualString other)
          Copy c'tor.
MultilingualString(RegionalString[] regionalStrings)
          Constructors with the specified parameter.
 
Method Summary
 void clear()
          Clears the list of strings.
 Object clone()
           
 void Copy(com.sap.mdm.internal.io.Archivable that)
           
 boolean equals(Object obj)
          Compares the to multilingual string.
 String get()
          For internal use only.
 String Get()
          Deprecated. replaced with get()
 String get(String regionCode)
          Returns the string value for the given region code.
 RegionalString[] getStrings()
          Returns the list of regional string.
 int hashCode()
           
 Iterator keys()
          Returns the list of region codes.
 void Load(com.sap.mdm.internal.io.Archive archive)
           
 String remove(String regionCode)
          Removes the string.
 void set(RegionalString value)
          Sets the string value for the given region code.
 void Set(String string)
          Deprecated. replaced with set(String string)
 void set(String regionCode, String value)
          Sets the string value for the given region code.
 void SetEvenIfEmpty(String str)
          For internal use only.
 void Store(com.sap.mdm.internal.io.Archive archive)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultilingualString

public MultilingualString()
Empty constructor.


MultilingualString

public MultilingualString(RegionalString[] regionalStrings)
Constructors with the specified parameter.

Parameters:
regionalStrings - the list of strings

MultilingualString

public MultilingualString(MultilingualString other)
Copy c'tor. Creates deep copy of MultilingualString object.

Parameters:
other - Object to copy
Since:
7.2
Method Detail

Copy

public void Copy(com.sap.mdm.internal.io.Archivable that)

Load

public void Load(com.sap.mdm.internal.io.Archive archive)

Store

public void Store(com.sap.mdm.internal.io.Archive archive)

get

public String get()
For internal use only. Returns the first string.

Returns:
the first string.

get

public String get(String regionCode)
Returns the string value for the given region code. If not matching string, return null.

Parameters:
regionCode - the region code.
Returns:
the string that matches the given region code.

set

public void set(String regionCode,
                String value)
Sets the string value for the given region code.

Parameters:
regionCode - the region code.
value - the string value.

set

public void set(RegionalString value)
Sets the string value for the given region code.

Parameters:
value - the regional string.

remove

public String remove(String regionCode)
Removes the string.

Parameters:
regionCode - the regionCode
Returns:
the string removed

Get

public String Get()
Deprecated. replaced with get()

For internal use only.

Returns:
returns the first string

Set

public void Set(String string)
Deprecated. replaced with set(String string)

For internal use only.

Parameters:
string - the string

toString

public String toString()
See Also:
Object.toString()

keys

public Iterator keys()
Returns the list of region codes.

Returns:
the region codes.

equals

public boolean equals(Object obj)
Compares the to multilingual string. Order doesn't matter.

See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

clear

public void clear()
Clears the list of strings.


getStrings

public RegionalString[] getStrings()
Returns the list of regional string.

Returns:
the list of regional string

SetEvenIfEmpty

public void SetEvenIfEmpty(String str)
For internal use only.

Parameters:
str -

clone

public Object clone()


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.