com.sap.engine.interfaces.messaging.api

Class Party

java.lang.Object
  extended by com.sap.engine.interfaces.messaging.api.Party
All Implemented Interfaces:
Serializable, Comparable

public final class Party
extends Object
implements Serializable, Comparable

A Party identifies a participant in a message exchange. It offers one or more Services that can act on multiple processes (Actions). There are two parties specified in each Message, one of the sender (the from party) and one of the receiver (the to party).

See Also:
Service, Action, Serialized Form

Constructor Summary
Party(String name)
          Constructs a new Party object with a name but no type.
Party(String name, String type)
          Constructs a new Party object with a name and a type.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getName()
          Returns the name of the Party.
 String getType()
          Returns the type of the Party.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Party

public Party(String name,
             String type)
Constructs a new Party object with a name and a type.

Parameters:
name - the party name.
type - the party type.

Party

public Party(String name)
Constructs a new Party object with a name but no type.

Parameters:
name - the party name.
Method Detail

getName

public String getName()
Returns the name of the Party.

Returns:
party name.

getType

public String getType()
Returns the type of the Party.

Returns:
party type.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.ifc.facade api BC-XI


Copyright 2015 SAP AG Complete Copyright Notice