com.sap.mdm.valuetypes
Class PersonNameValue

java.lang.Object
  extended bycom.sap.mdm.valuetypes.AbstractMdmValue
      extended bycom.sap.mdm.valuetypes.PersonNameValue
All Implemented Interfaces:
Cloneable, Comparable, MdmValue

public class PersonNameValue
extends AbstractMdmValue

This class represents MDM name value.


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.valuetypes.MdmValue
MdmValue.Type
 
Constructor Summary
PersonNameValue(PersonNameValue other)
           
PersonNameValue(String title, String firstName, String middleName, String lastName, String suffix)
           
 
Method Summary
 Object clone()
          Clone MdmValue object
 int compareTo(MdmValue otherValue)
          Compares two MdmValue.
 boolean equals(Object obj)
           
 String getFirstName()
          Get first name
 String getLastName()
          Get last name
 String getMiddleName()
          Get middle name
 String getName()
          Get full name
 String getSuffix()
          Get suffix
 String getTitle()
          Get title
 int getType()
          Get type of MdmValue instance.
 int hashCode()
           
 void setFirstName(String firstName)
          Set first name
 void setLastName(String lastName)
          Set last name
 void setMiddleName(String middleName)
          Set middle name
 void setName(String title, String firstName, String middleName, String lastName, String suffix)
          Set the name.
 void setSuffix(String suffix)
          Set suffix
 void setTitle(String title)
          Set title
 String toString()
           
 
Methods inherited from class com.sap.mdm.valuetypes.AbstractMdmValue
compareTo, isMultiregion, isMultivalue, isNull
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonNameValue

public PersonNameValue(String title,
                       String firstName,
                       String middleName,
                       String lastName,
                       String suffix)

PersonNameValue

public PersonNameValue(PersonNameValue other)
Method Detail

getType

public 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
Specified by:
getType in class AbstractMdmValue

getName

public String getName()
Get full name

Returns:
full name

setName

public void setName(String title,
                    String firstName,
                    String middleName,
                    String lastName,
                    String suffix)
Set the name.

Parameters:
title - the title
firstName - the first name
middleName - the middle name
lastName - the last name
suffix - the suffix

getFirstName

public String getFirstName()
Get first name

Returns:
first name

setFirstName

public void setFirstName(String firstName)
Set first name

Parameters:
firstName - last name

getLastName

public String getLastName()
Get last name

Returns:
last name

setLastName

public void setLastName(String lastName)
Set last name

Parameters:
lastName - last name

getMiddleName

public String getMiddleName()
Get middle name

Returns:
middle name

setMiddleName

public void setMiddleName(String middleName)
Set middle name

Parameters:
middleName - middle name

getSuffix

public String getSuffix()
Get suffix

Returns:
suffix

setSuffix

public void setSuffix(String suffix)
Set suffix

Parameters:
suffix -

getTitle

public String getTitle()
Get title

Returns:
title

setTitle

public void setTitle(String title)
Set title

Parameters:
title -

clone

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

Specified by:
clone in interface MdmValue
Specified by:
clone in class AbstractMdmValue

toString

public String toString()

compareTo

public int compareTo(MdmValue otherValue)
Description copied from class: AbstractMdmValue
Compares two MdmValue.

Specified by:
compareTo in class AbstractMdmValue
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;

hashCode

public int hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractMdmValue
See Also:
Object.equals(java.lang.Object)


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.