|
|||||||||||
| 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.MultiTupleValue
A data structure representing a multi-valued tuple.
| Nested Class Summary |
| Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue |
MdmValue.Type |
| Constructor Summary | |
MultiTupleValue()
Empty constructor. |
|
| Method Summary | |
int |
addValue(int index,
MdmValue value)
If the tuple value contains a valid tuple record Id, it is assume the user wants to modify the tuple value. |
int |
addValue(MdmValue value)
If the tuple value contains a valid tuple record Id, it is assume the user wants to modify the tuple value. |
void |
clearValues()
Remove all values from the list. |
Object |
clone()
Clone MdmValue object |
int |
compareTo(MdmValue otherValue)
Compares two MdmValue. |
boolean |
containsValue(MdmValue value)
Check if this instance contains the specified value |
boolean |
equals(Object obj)
|
TupleValue[] |
getModifyTupleRecords()
Returns the tuple values that are marked for modifying. |
TupleValue[] |
getNewTupleRecords()
Returns the tuple values that are marked for adding. |
TupleValue[] |
getRemoveTupleRecords()
Returns the tuple values that are marked for deletion. |
int |
getType()
Get type of MdmValue instance. |
TupleValue[] |
getUntouchTupleRecords()
Returns the tuple values that are untouched. |
MdmValue |
getValue(int index)
Returns the tuple value at the specified index. |
MdmValue[] |
getValues()
Get array of values that are stored in this class |
int |
getValuesCount()
Get count of values in the multi-value list |
int |
hashCode()
|
boolean |
isNull()
Specify if MdmValue is NULL |
void |
modifyTupleValue(TupleValue value)
Modifies a tuple value to a tuple instance. |
void |
newTupleValue(TupleValue tupleValue)
Adds a tuple value to a tuple instance. |
void |
removeTupleValue(TupleRecordId tupleRecordId)
Removes a tuple value from a tuple instance. |
void |
removeTupleValue(TupleValue value)
Removes a tuple value from a tuple instance. |
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 |
setInitial()
For internal use only. |
void |
setValues(MdmValue[] values)
Sets the new tuple values. |
| Methods inherited from class com.sap.mdm.valuetypes.MultiValue |
isMultivalue, 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 MultiTupleValue()
| Method Detail |
public int getType()
MdmValue
getType in interface MdmValuegetType in class MultiValue
public int addValue(MdmValue value)
throws IllegalArgumentException
newTupleValue(TupleValue) and modifyTupleValue(TupleValue) instead.
addValue in class MultiValuevalue - a tuple value
IllegalArgumentException - if the specified value already exist in the list of valuesnewTupleValue(TupleValue),
modifyTupleValue(TupleValue)
public int addValue(int index,
MdmValue value)
throws IllegalArgumentException
newTupleValue(TupleValue) and modifyTupleValue(TupleValue) instead.
addValue in class MultiValueindex - the index arrayvalue - a tuple value
IllegalArgumentException - if the specified value already exist in the list of valuesnewTupleValue(TupleValue),
modifyTupleValue(TupleValue)
public MdmValue removeValue(int index)
throws IllegalArgumentException
MultiValue
removeValue in class MultiValueindex - position of removed value
IllegalArgumentException - if index is out of boundspublic void removeValue(MdmValue value)
MultiValue
removeValue in class MultiValuevalue - value that should be removed
public void setValues(MdmValue[] values)
throws IllegalArgumentException
addValue(MdmValue) for the individual array
elements.
setValues in class MultiValuevalues - array of new values
IllegalArgumentException - if one of the values is not instance of MdmValue or
if array of input values includes instances of different MdmValue classesaddValue(MdmValue)public MdmValue[] getValues()
MultiValue
getValues in class MultiValuepublic Object clone()
MdmValue
clone in interface MdmValueclone in class MultiValuepublic boolean equals(Object obj)
equals in class MultiValueObject.equals(java.lang.Object)public int hashCode()
hashCode in class MultiValueObject.hashCode()public boolean isNull()
MdmValue
isNull in interface MdmValueisNull in class MultiValue
public MdmValue getValue(int index)
throws IllegalArgumentException
getValue in class MultiValueindex - an index
IllegalArgumentException - if the index is out of rangeMultiValue.getValue(int)public void clearValues()
MultiValue
clearValues in class MultiValuepublic int compareTo(MdmValue otherValue)
AbstractMdmValue
compareTo in class MultiValuepublic boolean containsValue(MdmValue value)
MultiValue
containsValue in class MultiValuevalue - value whose presence in this instance is to be tested.
public int getValuesCount()
MultiValue
getValuesCount in class MultiValuepublic void newTupleValue(TupleValue tupleValue)
tupleValue - a tuple valuepublic void modifyTupleValue(TupleValue value)
value - a tuple valuepublic void removeTupleValue(TupleValue value)
value - a tuple valuepublic void removeTupleValue(TupleRecordId tupleRecordId)
tupleRecordId - a tuple record Idpublic TupleValue[] getNewTupleRecords()
public TupleValue[] getModifyTupleRecords()
public TupleValue[] getUntouchTupleRecords()
public TupleValue[] getRemoveTupleRecords()
public void setInitial()
|
|||||||||||
| 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.