|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.slee.profile.ProfileID
The ProfileID
class defines an indentifer that can be used to
reference profiles. For example a profile specification's CMP interface
may contain attributes of the type ProfileID
, allowing profile's of
that type to reference other profiles.
Constructor Summary | |
ProfileID(Address address)
Create a ProfileID object from an address. |
|
ProfileID(java.lang.String profileTableName,
java.lang.String profileName)
Create a ProfileID object using a profile table name and profile name. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare this profile identifier for equality with another object. |
java.lang.String |
getProfileName()
Get the name of the profile referenced by this identifier. |
java.lang.String |
getProfileTableName()
Get the name of the profile table referenced by this identifier. |
int |
hashCode()
Get a hash code value for this profile identifer. |
void |
setProfileID(java.lang.String profileTableName,
java.lang.String profileName)
Set the profile table and profile referenced by this profile identifier to new values. |
Address |
toAddress()
Get an Address object containing the address form of the profile
identified by this profile identifier. |
java.lang.String |
toString()
Get a string representation for this profile identifier. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProfileID(java.lang.String profileTableName, java.lang.String profileName) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
ProfileID
object using a profile table name and profile name.profileTableName
- the name of the profile table.profileName
- the name of the profile within the profile table.java.lang.NullPointerException
- if either argument is null
.java.lang.IllegalArgumentException
- if profileTableName
includes the '/'
character. This character is not permitted in profile table names.public ProfileID(Address address) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
ProfileID
object from an address. The address must have the
address plan of AddressPlan.SLEE_PROFILE
.address
- the address of the profile.java.lang.NullPointerException
- if address
is null
.java.lang.IllegalArgumentException
- if the address plan of the address is not
AddressPlan.SLEE_PROFILE
, or the address string does not
contain a profile identifier with the correct encoding:
<profile-table-name</<profile-name>.Method Detail |
public final java.lang.String getProfileTableName()
public final java.lang.String getProfileName()
public final void setProfileID(java.lang.String profileTableName, java.lang.String profileName) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
profileTableName
- the name of the profile table.profileName
- the name of the profile within the profile table.java.lang.NullPointerException
- if either argument is null
.java.lang.IllegalArgumentException
- if profileTableName
includes the
'/' character. This character is not permitted in profile table names.public Address toAddress()
Address
object containing the address form of the profile
identified by this profile identifier.Address
object containing the address form of the profile
identified by this profile identifier.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare this with.true
if obj
is an instance of this class and the
profile table name and profile name are equal.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |