com.sap.aii.af.service.cpa

Class CPAObjectType<T extends CPAObject>

java.lang.Object
  extended by com.sap.aii.af.service.cpa.CPAObjectType<T>
All Implemented Interfaces:
Serializable

public class CPAObjectType<T extends CPAObject>
extends Object
implements Serializable

The CPAObjectType is a typed enumeration class that lists the different CPAObject types known by the CPA cache service. The following CPAObjectTypes exist:

See Also:
Serialized Form

Field Summary
static CPAObjectType<Binding> BINDING
           
static CPAObjectType<BindingUser> BINDING_USER
           
static CPAObjectType<Channel> CHANNEL
           
static CPAObjectType<ModuleConfig> MODULE_CONFIG
           
static CPAObjectType<Party> PARTY
           
static CPAObjectType<PartyIdentifier> PARTY_IDENTIFIER
           
static CPAObjectType<Service> SERVICE
           
static CPAObjectType<ServiceIdentifier> SERVICE_IDENTIFIER
           
static CPAObjectType<ServiceUser> SERVICE_USER
           
 
Constructor Summary
protected CPAObjectType(String value)
          The default constructor for CPAObjectType is private.
 
Method Summary
 boolean equals(Object obj)
           
static CPAObjectType[] getAllCPAObjectTypes()
           
 int hashCode()
           
protected  Object readResolve()
           
 String toString()
          Returns the string representation of the CPAObjectType.
static CPAObjectType valueOf(String s)
          Returns an instance of CPAObjectType that represents the CPA object type given as a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PARTY

public static final CPAObjectType<Party> PARTY

PARTY_IDENTIFIER

public static final CPAObjectType<PartyIdentifier> PARTY_IDENTIFIER

SERVICE

public static final CPAObjectType<Service> SERVICE

SERVICE_IDENTIFIER

public static final CPAObjectType<ServiceIdentifier> SERVICE_IDENTIFIER

SERVICE_USER

public static final CPAObjectType<ServiceUser> SERVICE_USER

CHANNEL

public static final CPAObjectType<Channel> CHANNEL

BINDING

public static final CPAObjectType<Binding> BINDING

BINDING_USER

public static final CPAObjectType<BindingUser> BINDING_USER

MODULE_CONFIG

public static final CPAObjectType<ModuleConfig> MODULE_CONFIG
Constructor Detail

CPAObjectType

protected CPAObjectType(String value)
The default constructor for CPAObjectType is private. Only the public static constants can be used (typed enumeration pattern).

Parameters:
value - One of the constants for the different known CPA object types.
Method Detail

toString

public String toString()
Returns the string representation of the CPAObjectType. This value can be used to get a CPAObjectType instance by a call to valueOf(String).

Overrides:
toString in class Object
Returns:
The String representation of the CPAObjectType.
See Also:
valueOf(String)

valueOf

public static CPAObjectType valueOf(String s)
Returns an instance of CPAObjectType that represents the CPA object type given as a string. This will typically be used to create a CPAObjectType object from a string retrieved from the database.

Parameters:
s - The String representation where the CPAObjectType is to be created from.
Throws:
NullPointerException - if the argument is null.
IllegalArgumentException - if the argument is not a known CPAObjectType.

getAllCPAObjectTypes

public static CPAObjectType[] getAllCPAObjectTypes()

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Throws:
ObjectStreamException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

This class can be accessed from:


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


Copyright 2011 SAP AG Complete Copyright Notice