com.sap.mdm.repository
Interface RegionInheritanceProperties


public interface RegionInheritanceProperties

This interface specifies the region inheritance for one region.


Method Summary
 RegionProperties[] getAllRegions()
          Returns all the regions.
 RegionProperties getCurrentRegion()
          Returns the current region.
 RegionalString getInheritedString(MultilingualString string, int regionalLayer)
          Returns the string according to the regional layer specified.
 RegionProperties[] getPrimaryRegions()
          Return the primary regions.
 RegionProperties[] getSecondaryRegions()
          Returns the secondary regions.
 boolean isCurrentRegion(String regionCode)
          Determines if the region code is from the current region.
 boolean isPrimaryRegion(String regionCode)
          Determines if the region code is from the primary region.
 boolean isSecondaryRegion(String regionCode)
          Determines if the region code is from the secondary region.
 

Method Detail

getPrimaryRegions

public RegionProperties[] getPrimaryRegions()
Return the primary regions.

Returns:
the primary regions

getSecondaryRegions

public RegionProperties[] getSecondaryRegions()
Returns the secondary regions.

Returns:
the secondary regions

getAllRegions

public RegionProperties[] getAllRegions()
Returns all the regions.

Returns:
all the regions

getCurrentRegion

public RegionProperties getCurrentRegion()
Returns the current region.

Returns:
the current region

isCurrentRegion

public boolean isCurrentRegion(String regionCode)
Determines if the region code is from the current region.

Parameters:
regionCode - the region code to check
Returns:
true if the region is the current region, otherwise false

isPrimaryRegion

public boolean isPrimaryRegion(String regionCode)
Determines if the region code is from the primary region.

Parameters:
regionCode - the region code to check
Returns:
true if the region is from the primary region, otherwise false

isSecondaryRegion

public boolean isSecondaryRegion(String regionCode)
Determines if the region code is from the secondary region.

Parameters:
regionCode - the region code to check
Returns:
true if the region is from the secondary region, otherwise false

getInheritedString

public RegionalString getInheritedString(MultilingualString string,
                                         int regionalLayer)
Returns the string according to the regional layer specified.

Parameters:
string - string containing numerous region layers
regionalLayer - a region layer
Returns:
a string if there is a match, otherwise null
Since:
5.5 SP6 Patch 04


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.