EntityStatuspublic class EntityStatus extends Status A class representing the status of an entity. |
Fields Summary |
---|
public static final long | serialVersionUID | public static final String | kEnabledStr | public static final String | kDisabledStr |
Constructors Summary |
---|
public EntityStatus()Creates new EntityStatus that represents an ENABLED entity.
super(Status.kEntityEnabledCode, kEnabledStr);
| public EntityStatus(int code, String str)
super(code, str);
|
Methods Summary |
---|
public boolean | isDisabled()Returns whether the entity is disabled.
return (mStatusCode == Status.kEntityDisabledCode);
| public boolean | isEnabled()Returns whether the entity is enabled.
return (mStatusCode == Status.kEntityEnabledCode);
| public void | setDisabled()
if (!isDisabled())
{
mStatusCode = Status.kEntityDisabledCode;
mStatusString = kDisabledStr;
}
| public void | setEnabled()
if (!isEnabled())
{
mStatusCode = Status.kEntityEnabledCode;
mStatusString = kEnabledStr;
}
|
|