|
|||||||||||
| 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
This class represents MDM multi-value.
| Nested Class Summary |
| Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue |
MdmValue.Type |
| Constructor Summary | |
MultiValue()
Empty constructor |
|
MultiValue(MdmValue[] values)
Constructor |
|
MultiValue(MultiValue value)
Constructs with the specified parameter. |
|
| Method Summary | |
int |
addValue(int index,
MdmValue value)
Add single MdmValue to the list of values at the specified position |
int |
addValue(MdmValue value)
Add single MdmValue to the end of values list |
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)
|
int |
getType()
Get type of MdmValue instance. |
MdmValue |
getValue(int index)
Get value at the specified position |
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 |
isMultivalue()
Specify if MdmValue is multi-value instance |
boolean |
isNull()
Specify if MdmValue is NULL |
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 |
setValues(MdmValue[] values)
Set array of values. |
void |
sortLinks()
For internal use only Sorts values by display values |
String |
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 MultiValue()
public MultiValue(MdmValue[] values)
values - public MultiValue(MultiValue value)
value - the other value| Method Detail |
public boolean isNull()
MdmValue
isNull in interface MdmValueisNull in class AbstractMdmValuepublic int getType()
MdmValue
getType in interface MdmValuegetType in class AbstractMdmValuepublic boolean isMultivalue()
MdmValue
isMultivalue in interface MdmValueisMultivalue in class AbstractMdmValuepublic int getValuesCount()
public MdmValue[] getValues()
public MdmValue getValue(int index)
throws IllegalArgumentException
index - position of value in the multi-value list
IllegalArgumentException - if the index is out of range
public void setValues(MdmValue[] values)
throws IllegalArgumentException
values - 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 classespublic boolean containsValue(MdmValue value)
value - value whose presence in this instance is to be tested.
public int addValue(int index,
MdmValue value)
throws IllegalArgumentException
MdmValue to the list of values at the specified position
index - position the value should be added to. If index=-1 then value is added to the end of listvalue - value to add
IllegalArgumentException - if the specified value already exist in the list of values
public int addValue(MdmValue value)
throws IllegalArgumentException
MdmValue to the end of values list
value - value to add
IllegalArgumentException - if the specified value already exist in the list of valuespublic void removeValue(MdmValue value)
value - value that should be removed
public MdmValue removeValue(int index)
throws IllegalArgumentException
index - position of removed value
IllegalArgumentException - if index is out of boundspublic void clearValues()
public Object clone()
MdmValue
clone in interface MdmValueclone in class AbstractMdmValuepublic boolean equals(Object obj)
equals in class AbstractMdmValueObject.equals(java.lang.Object)public int hashCode()
Object.hashCode()public String toString()
Object.toString()public int compareTo(MdmValue otherValue)
AbstractMdmValue
compareTo in class AbstractMdmValueotherValue - the MdmValue to be compared.
0 if the argument is a MdmValue is equal to this MdmValue;
the value is less than 0 if this MdmValue is less than the argument MdmValue;
the value is greater than 0 if this MdmValue is greater than the argument MdmValue;public void sortLinks()
|
|||||||||||
| 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.