|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mobicents.slee.container.management
Class ProfileCMPMethod

java.lang.Objectorg.mobicents.slee.container.management.ProfileCMPMethod
- All Implemented Interfaces:
- java.lang.Comparable
- public class ProfileCMPMethod
- extends java.lang.Object
- implements java.lang.Comparable
- extends java.lang.Object
Declares the presence of the get Profile CMP method and associates the method with a Profile Specification. This SBB Developer specifies the following aspects of the get Profile CMP method using the get-profile-cmp-method element: · - The method name of the get Profile CMP method. · - The Profile Specification of the get Profile CMP method.
| Field Summary | |
private java.lang.String |
cmpInterface
|
private java.lang.String |
profileCMPMethod
|
private ComponentKey |
profileSpecKey
|
| Constructor Summary | |
ProfileCMPMethod(ComponentKey profileSpecKey,
java.lang.String profileCMPMethod)
|
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this object with another, and returns a numerical result based on the comparison. |
boolean |
equals(java.lang.Object obj)
Determine whether this Object is semantically equal to another Object. |
java.lang.String |
getProfileCMPMethod()
Returns the name of the method used to get an object that implements a Profile CMP interface from a Profile identifier. |
ComponentKey |
getProfileSpecKey()
Returns a key to a Profile Specification that is specified in a profile-spec element within the same sbb element. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
profileSpecKey
private ComponentKey profileSpecKey
profileCMPMethod
private java.lang.String profileCMPMethod
cmpInterface
private java.lang.String cmpInterface
| Constructor Detail |
ProfileCMPMethod
public ProfileCMPMethod(ComponentKey profileSpecKey, java.lang.String profileCMPMethod)
| Method Detail |
getProfileSpecKey
public ComponentKey getProfileSpecKey()
- Returns a key to a Profile Specification that is specified in a profile-spec
element within the same sbb element.
getProfileCMPMethod
public java.lang.String getProfileCMPMethod()
- Returns the name of the method used to get an object that implements a
Profile CMP interface from a Profile identifier. The Profile CMP interface
is specified by the Profile Specification identified by this.profileSpecKey
equals
public boolean equals(java.lang.Object obj)
- Description copied from class:
java.lang.Object - Determine whether this Object is semantically equal
to another Object.
There are some fairly strict requirements on this method which subclasses must follow:
- It must be transitive. If
a.equals(b)andb.equals(c), thena.equals(c)must be true as well. - It must be symmetric.
a.equals(b)andb.equals(a)must have the same value. - It must be reflexive.
a.equals(a)must always be true. - It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
a.equals(null)must be false.- It must be consistent with hashCode(). That is,
a.equals(b)must implya.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.
This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for
a.equals(b)to be true even thougha.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.In general, the Collections API (
java.util) use theequalsmethod rather than the==operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.The default implementation returns
this == o. - It must be transitive. If
compareTo
public int compareTo(java.lang.Object obj)
- Description copied from interface:
java.lang.Comparable - Compares this object with another, and returns a numerical result based
on the comparison. If the result is negative, this object sorts less
than the other; if 0, the two are equal, and if positive, this object
sorts greater than the other. To translate this into boolean, simply
perform
o1.compareTo(o2) <op> 0, where op is one of <, <=, =, !=, >, or >=.You must make sure that the comparison is mutual, ie.
sgn(x.compareTo(y)) == -sgn(y.compareTo(x))(where sgn() is defined as -1, 0, or 1 based on the sign). This includes throwing an exception in either direction if the two are not comparable; hence,compareTo(null)should always throw an Exception.You should also ensure transitivity, in two forms:
x.compareTo(y) > 0 && y.compareTo(z) > 0impliesx.compareTo(z) > 0; andx.compareTo(y) == 0impliesx.compareTo(z) == y.compareTo(z).- Specified by:
compareToin interfacejava.lang.Comparable
|
|||||||||
| Home >> All >> org >> mobicents >> slee >> container >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mobicents.slee.container.management.ProfileCMPMethod