com.sap.mdm.valuetypes
Class AbstractMdmValue

java.lang.Object
  extended bycom.sap.mdm.valuetypes.AbstractMdmValue
All Implemented Interfaces:
Cloneable, Comparable, MdmValue
Direct Known Subclasses:
AbstractImmutableMdmValue, BinaryValue, MultiregionValue, MultiValue, PersonNameValue

public abstract class AbstractMdmValue
extends Object
implements MdmValue

This abstract class indicates a mutable MDM value.


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue
MdmValue.Type
 
Constructor Summary
AbstractMdmValue()
           
 
Method Summary
abstract  Object clone()
          Clone MdmValue object
abstract  int compareTo(MdmValue otherValue)
          Compares two MdmValue.
 int compareTo(Object o)
          Compares this MdmValue to another Object.
 boolean equals(Object obj)
           
abstract  int getType()
          Get type of MdmValue instance.
 boolean isMultiregion()
          Specify if MdmValue is multi-region instance
 boolean isMultivalue()
          Specify if MdmValue is multi-value instance
 boolean isNull()
          Specify if MdmValue is NULL
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMdmValue

public AbstractMdmValue()
Method Detail

isNull

public boolean isNull()
Description copied from interface: MdmValue
Specify if MdmValue is NULL

Specified by:
isNull in interface MdmValue
Returns:
true if value is NULL, false otherwise

isMultivalue

public boolean isMultivalue()
Description copied from interface: MdmValue
Specify if MdmValue is multi-value instance

Specified by:
isMultivalue in interface MdmValue
Returns:
true if multi-value

isMultiregion

public boolean isMultiregion()
Description copied from interface: MdmValue
Specify if MdmValue is multi-region instance

Specified by:
isMultiregion in interface MdmValue
Returns:
true if multi-region

getType

public abstract int getType()
Description copied from interface: MdmValue
Get type of MdmValue instance. For MdmMultiValue instance this type specify type of multi-value elements Constants for MdmValue types are specified in this interface

Specified by:
getType in interface MdmValue
Returns:
value type

clone

public abstract Object clone()
Description copied from interface: MdmValue
Clone MdmValue object

Specified by:
clone in interface MdmValue

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

compareTo

public int compareTo(Object o)
Compares this MdmValue to another Object. If the Object is a MdmValue, this function behaves like compareTo(MdmValue). Otherwise, it throws a ClassCastException (as MdmValue are comparable only to other MdmValue).

Specified by:
compareTo in interface Comparable
Parameters:
o - the Object to be compared.
Returns:
the value 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;
Throws:
ClassCastException - if the argument is not a MdmValue.
Since:
1.2
See Also:
Comparable

compareTo

public abstract int compareTo(MdmValue otherValue)
Compares two MdmValue.

Parameters:
otherValue - the MdmValue to be compared.
Returns:
the value 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;
Throws:
ClassCastException - if the argument is not the same MDM value type as this value


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.