|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.valuetypes.AbstractMdmValue
com.sap.mdm.valuetypes.MultiValue
com.sap.mdm.valuetypes.QualifiedLookupValue
This 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 | |
QualifiedLookupValue()
Constructor |
|
QualifiedLookupValue(QualifiedLinkValue[] values)
Constructor |
|
QualifiedLookupValue(QualifiedLookupValue value)
Constructs with the specified parameter. |
|
| Method Summary | |
void |
clearValues()
Remove all values from the list. |
Object |
clone()
Clone MdmValue object |
int |
createQualifiedLink(QualifiedLinkId linkId,
RecordId lookupId)
Create qualified link corresponded to the existing link in the repository and add it to the list of links. |
int |
createQualifiedLink(QualifiedLinkId linkId,
RecordId lookupId,
Map qualifiers)
Create qualified link corresponded to the existing link in the repository and add it to the list of links. |
int |
createQualifiedLink(QualifiedLinkValue link)
Create new qualified link as copy of another qualified link. |
int |
createQualifiedLink(RecordId lookupId)
Create new qualified link and add it to the list of links |
int |
createQualifiedLink(RecordId lookupId,
Map qualifiers)
Create new qualified link populated with qualifier values and add it to the list of links |
QualifiedLinkId |
getLinkId(int index)
Get ID of qualified link at the specified position |
RecordId |
getLookupId(int index)
Get ID of lookup record that defines the specified qualified link |
MultiregionValue |
getMultiregionQualifierFieldValue(int index,
FieldId qualifierFieldId)
Get multi-regional value of the specified qualifier field for the qualified link at specified index position |
QualifiedLinkValue |
getQualifiedLink(int index)
Get QualifiedLink at the specified position. |
QualifiedLinkValue[] |
getQualifiedLinks()
Get array of all qualified links |
FieldId[] |
getQualifierFields()
Get IDs of qualifier fields |
MdmValue |
getQualifierFieldValue(int index,
FieldId qualifierFieldId)
Get value of the specified qualifier field for the qualified link at specified index position |
List |
getRemovedLinks()
Get qualified links that should be removed |
int |
getType()
Get type of MdmValue instance. |
boolean |
isCompleteSet()
Specify if this set of qualified links is complete |
void |
removeQualifiedLink(int index)
Remove qualified link at specified position in the list of links. |
MdmValue |
removeValue(int index)
Remove value at the specified position in the list of values |
void |
removeValue(MdmValue value)
Remove specified value from the list of values |
void |
setCompleteSet(boolean isCompleteSet)
Specify if this set of qualified links is complete |
void |
setQualifierFieldValue(int index,
FieldId qualifierFieldId,
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.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 |
public QualifiedLookupValue()
public QualifiedLookupValue(QualifiedLinkValue[] values)
values - array of qualified linkspublic QualifiedLookupValue(QualifiedLookupValue value)
value - array of qualified links| Method Detail |
public int getType()
MdmValue
getType in interface MdmValuegetType in class MultiValuepublic QualifiedLinkValue[] getQualifiedLinks()
public QualifiedLinkId getLinkId(int index)
throws IllegalArgumentException
index - position of qualified link in the list of links
IllegalArgumentException - if index is out of bounds
public RecordId getLookupId(int index)
throws IllegalArgumentException
index - position of qualified link in the list of links
IllegalArgumentException - if index is out of boundspublic FieldId[] getQualifierFields()
public MdmValue getQualifierFieldValue(int index,
FieldId qualifierFieldId)
throws IllegalArgumentException
index position
index - position of qualified link in the list of linksqualifierFieldId - ID of qualifier field
IllegalArgumentException - if index is out of bounds or
qualifiedFieldId is not exist
public MultiregionValue getMultiregionQualifierFieldValue(int index,
FieldId qualifierFieldId)
throws IllegalArgumentException
index position
index - position of qualified link in the list of linksqualifierFieldId - ID of qualifier field
IllegalArgumentException - if index is out of bounds or
qualifiedFieldId is not exist or value is not multi-regional
public void setQualifierFieldValue(int index,
FieldId qualifierFieldId,
MdmValue value)
throws IllegalArgumentException
index position
index - position of qualified link in the list of linksqualifierFieldId - ID of qualifier fieldvalue - new value of qualifier field
IllegalArgumentException - if index is out of bounds or
qualifiedFieldId is not existpublic int createQualifiedLink(RecordId lookupId)
lookupId - ID of lookup record that defines the new qualified link
public int createQualifiedLink(RecordId lookupId,
Map qualifiers)
lookupId - ID of lookup record that defines the new qualified linkqualifiers - map of qualifier field values. Key of map is ID of qualifier field.
If qualifier field values are not known they should be populated to MdmNull values
public int createQualifiedLink(QualifiedLinkId linkId,
RecordId lookupId)
linkId - ID of qualified link.lookupId - ID of lookup record that defines the new qualified link.
public int createQualifiedLink(QualifiedLinkId linkId,
RecordId lookupId,
Map qualifiers)
linkId - ID of qualified link.lookupId - ID of lookup record that defines the new qualified link.qualifiers - map of qualifier field values. Key of map is ID of qualifier field.
If qualifier field values are not known they should be populated to MdmNull values
public int createQualifiedLink(QualifiedLinkValue link)
link - another qualified link.
public void removeQualifiedLink(int index)
throws IllegalArgumentException
index - position of qualified link that should be removed.
IllegalArgumentException - if index is out of bounds.public void removeValue(MdmValue value)
MultiValue
removeValue in class MultiValuevalue - value that should be removed
public MdmValue removeValue(int index)
throws IllegalArgumentException
MultiValue
removeValue in class MultiValueindex - position of removed value
IllegalArgumentException - if index is out of boundspublic void clearValues()
MultiValue
clearValues in class MultiValue
public QualifiedLinkValue getQualifiedLink(int index)
throws IllegalArgumentException
index - position of qualified link.
IllegalArgumentException - if index is out of bounds.public Object clone()
MdmValue
clone in interface MdmValueclone in class MultiValuepublic boolean isCompleteSet()
public void setCompleteSet(boolean isCompleteSet)
isCompleteSet - true if set is complete, false if set includes only differential changespublic List getRemovedLinks()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.