com.sap.mdm.extension.data
Class QualifiedLookupValueEx

java.lang.Object
  extended bycom.sap.mdm.valuetypes.AbstractMdmValue
      extended bycom.sap.mdm.valuetypes.MultiValue
          extended bycom.sap.mdm.valuetypes.QualifiedLookupValue
              extended bycom.sap.mdm.extension.data.QualifiedLookupValueEx
All Implemented Interfaces:
Cloneable, Comparable, MdmValue

public class QualifiedLookupValueEx
extends QualifiedLookupValue

The QualifiedLookupValue class represents value of qualified field. It includes number of QualifiedLinkValue instances.


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue
MdmValue.Type
 
Constructor Summary
QualifiedLookupValueEx(QualifiedLinkValue[] values, TableSchema tableMetadata)
          Constructor.
QualifiedLookupValueEx(QualifiedLookupValue otherValue, TableSchema tableMetadata)
          Constructor.
QualifiedLookupValueEx(TableSchema tableMetadata)
          Constructor.
 
Method Summary
 Object clone()
          Returns a clone.
 MultiregionValue getMultiregionQualifierFieldValue(int index, String qualifierFieldCode)
          Get multi-regional value of the specified qualifier field for the qualified link at specified index position
 QualifiedLinkValueEx getQualifiedLinkEx(int index)
          Get QualifiedLink at the specified position
 QualifiedLinkValueEx[] getQualifiedLinksEx()
          Get array of all qualified links
 String[] getQualifierFieldCodes()
          Get IDs of qualifier fields
 MdmValue getQualifierFieldValue(int index, String qualifierFieldCode)
          Get value of the specified qualifier field for the qualified link at specified index position
 void setQualifierFieldValue(int index, String qualifierFieldCode, MdmValue value)
          Set value to the specified qualifier field for the qualified link at specified index position
 
Methods inherited from class com.sap.mdm.valuetypes.QualifiedLookupValue
clearValues, createQualifiedLink, createQualifiedLink, createQualifiedLink, createQualifiedLink, createQualifiedLink, getLinkId, getLookupId, getMultiregionQualifierFieldValue, getQualifiedLink, getQualifiedLinks, getQualifierFields, getQualifierFieldValue, getRemovedLinks, getType, isCompleteSet, removeQualifiedLink, removeValue, removeValue, setCompleteSet, setQualifierFieldValue
 
Methods inherited from class com.sap.mdm.valuetypes.MultiValue
addValue, addValue, compareTo, containsValue, equals, getValue, getValues, getValuesCount, hashCode, isMultivalue, isNull, setValues, sortLinks, toString
 
Methods inherited from class com.sap.mdm.valuetypes.AbstractMdmValue
compareTo, isMultiregion
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifiedLookupValueEx

public QualifiedLookupValueEx(TableSchema tableMetadata)
Constructor.

Parameters:
tableMetadata - a table metadata

QualifiedLookupValueEx

public QualifiedLookupValueEx(QualifiedLinkValue[] values,
                              TableSchema tableMetadata)
Constructor.

Parameters:
values - array of qualified links
tableMetadata - a table metadata

QualifiedLookupValueEx

public QualifiedLookupValueEx(QualifiedLookupValue otherValue,
                              TableSchema tableMetadata)
Constructor.

Parameters:
otherValue - a qualified lookup value
tableMetadata - a table metadata
Method Detail

getQualifiedLinksEx

public QualifiedLinkValueEx[] getQualifiedLinksEx()
Get array of all qualified links

Returns:
array of qualified links

getQualifierFieldCodes

public String[] getQualifierFieldCodes()
Get IDs of qualifier fields

Returns:
array of IDs for all qualifier fields

getQualifierFieldValue

public MdmValue getQualifierFieldValue(int index,
                                       String qualifierFieldCode)
                                throws IllegalArgumentException
Get value of the specified qualifier field for the qualified link at specified index position

Parameters:
index - position of qualified link in the list of links
qualifierFieldCode - qualifier field
Returns:
value of qualifier field
Throws:
IllegalArgumentException - if index is out of bounds or qualifiedFieldId is not exist

setQualifierFieldValue

public void setQualifierFieldValue(int index,
                                   String qualifierFieldCode,
                                   MdmValue value)
                            throws IllegalArgumentException
Set value to the specified qualifier field for the qualified link at specified index position

Parameters:
index - position of qualified link in the list of links
qualifierFieldCode - qualifier field
value - new value of qualifier field
Throws:
IllegalArgumentException - if index is out of bounds or qualifiedFieldId is not exist

getQualifiedLinkEx

public QualifiedLinkValueEx getQualifiedLinkEx(int index)
                                        throws IllegalArgumentException
Get QualifiedLink at the specified position

Parameters:
index - position of qualified link
Returns:
qualified link
Throws:
IllegalArgumentException - if index is out of bounds

getMultiregionQualifierFieldValue

public MultiregionValue getMultiregionQualifierFieldValue(int index,
                                                          String qualifierFieldCode)
                                                   throws IllegalArgumentException
Get multi-regional value of the specified qualifier field for the qualified link at specified index position

Parameters:
index - position of qualified link in the list of links
qualifierFieldCode - code of qualifier field
Returns:
value of qualifier field
Throws:
IllegalArgumentException - if index is out of bounds or qualifiedFieldCode is not exist or value is not multi-regional

clone

public Object clone()
Returns a clone.

Specified by:
clone in interface MdmValue
Overrides:
clone in class QualifiedLookupValue
Returns:
a 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.