public class ProfileID extends Object implements Serializable, Cloneable
ProfileID
class defines an identifier 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 and Description |
---|
ProfileID(Address address)
Create a
ProfileID object from an address. |
ProfileID(String profileTableName,
String profileName)
Create a
ProfileID object using a profile table name and profile name. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Create a copy of this profile identifier.
|
boolean |
equals(Object obj)
Compare this profile identifier for equality with another object.
|
String |
getProfileName()
Get the name of the profile referenced by this identifier.
|
String |
getProfileTableName()
Get the name of the profile table referenced by this identifier.
|
int |
hashCode()
Get a hash code value for this profile identifier.
|
void |
setProfileID(String profileTableName,
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. |
String |
toString()
Get a string representation for this profile identifier.
|
public ProfileID(String profileTableName, String profileName) throws NullPointerException, 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.NullPointerException
- if either argument is null
.IllegalArgumentException
- if profileTableName
includes the '/'
character. This character is not permitted in profile table names.public ProfileID(Address address) throws NullPointerException, IllegalArgumentException
ProfileID
object from an address. The address must have the
address plan of AddressPlan.SLEE_PROFILE
.address
- the address of the profile.NullPointerException
- if address
is null
.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>.public final String getProfileTableName()
public final String getProfileName()
public final void setProfileID(String profileTableName, String profileName) throws NullPointerException, IllegalArgumentException
profileTableName
- the name of the profile table.profileName
- the name of the profile within the profile table.NullPointerException
- if either argument is null
.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 Object clone()
clone
in class Object
Object.clone()
public boolean equals(Object obj)
public int hashCode()