public class TierInfo extends PropertyInfo implements TierDetail
TierInfo
is a special case of PropertyInfo
in that instead of
using name and description message keys, name and description values can be set
by the administrator.
Constructor and Description |
---|
TierInfo(java.lang.String tierId)
Constructor taking a tier ID.
|
TierInfo(java.lang.String tierId,
java.lang.String name,
java.lang.String description)
Constructor taking tier ID, name and description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns user-defined description value.
|
java.lang.String |
getName()
Returns user-defined name value.
|
boolean |
isDefault()
Indicates whether this tier is the one assigned to users
if auto regsitration is activated.
|
void |
populateMessageKeys()
Generates message keys for the name and description attributes
|
void |
setDefault(boolean defaultTier)
Specifies if this tier is the default one.
|
void |
setDescription(java.lang.String description)
Set user defined value for tier description.
|
void |
setName(java.lang.String name)
Set user defined value for tier name.
|
java.lang.String |
toString() |
getDescriptionKey, getId, getNameKey, setDescriptionKey, setId, setNameKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public TierInfo(java.lang.String tierId, java.lang.String name, java.lang.String description)
public TierInfo(java.lang.String tierId)
UddiUser
where a TierInfo
is required only to specify a
tier ID.tierId
- public java.lang.String getDescription()
getDescription
in interface TierDetail
public java.lang.String getName()
getName
in interface TierDetail
public void setDescription(java.lang.String description)
description
- public void setName(java.lang.String name)
name
- public boolean isDefault()
TierDetail
isDefault
in interface TierDetail
true
if the tier is the one assigned to
users if auto regsitration is activated.TierDetail.isDefault()
public void setDefault(boolean defaultTier)
defaultTier
- public java.lang.String toString()
toString
in class PropertyInfo
public void populateMessageKeys()
PropertyInfo
populateMessageKeys
in class PropertyInfo