public class AuditStatus
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AuditStatus.InfoType |
static class |
AuditStatus.Severity |
static class |
AuditStatus.SubCode |
Modifier and Type | Field and Description |
---|---|
static AuditStatus |
BAD |
static AuditStatus |
BAD_DEMO_EXPIRED |
static AuditStatus |
BAD_INTERNAL_ERROR |
static AuditStatus |
BAD_SECURITY_CHECKS_FAILED |
static AuditStatus |
GOOD |
static int |
SEMANTICS_CHANGED_MASK |
static int |
STRUCTURE_CHANGED_MASK |
static AuditStatus |
UNCERTAIN |
protected int |
value |
Constructor and Description |
---|
AuditStatus(AuditStatus.SubCode subcode)
Creates a new status code with the given SubCode and false for the datavalue flag.
|
AuditStatus(AuditStatus.SubCode subCode,
AuditStatus.Severity severity) |
AuditStatus(AuditStatus.SubCode subCode,
AuditStatus.Severity severity,
boolean dataValue) |
AuditStatus(AuditStatus.SubCode subcode,
boolean datavalue)
Creates a new status code based on the given SubCode
|
AuditStatus(int value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
short |
getInfoBits()
Returns the InfoBits of the StatusCode (bits 0:9).
|
AuditStatus.InfoType |
getInfoType() |
java.lang.String |
getName() |
short |
getRawSubCode() |
int |
getRawValue() |
AuditStatus.Severity |
getSeverity() |
AuditStatus.SubCode |
getSubCode() |
int |
hashCode() |
boolean |
isGood() |
boolean |
isSemanticsChanged() |
boolean |
isStructureChanged() |
java.lang.String |
toString() |
static AuditStatus |
worstOf(AuditStatus q1,
AuditStatus q2)
Returns the 'worst' or 'most severe' of the two qualities.
|
static AuditStatus |
worstOfAll(AuditStatus... q) |
public static final AuditStatus GOOD
public static final AuditStatus UNCERTAIN
public static final AuditStatus BAD
public static final AuditStatus BAD_SECURITY_CHECKS_FAILED
public static final AuditStatus BAD_INTERNAL_ERROR
public static final AuditStatus BAD_DEMO_EXPIRED
public static final int STRUCTURE_CHANGED_MASK
public static final int SEMANTICS_CHANGED_MASK
protected int value
public AuditStatus(int value)
public AuditStatus(AuditStatus.SubCode subCode, AuditStatus.Severity severity)
public AuditStatus(AuditStatus.SubCode subCode, AuditStatus.Severity severity, boolean dataValue)
public AuditStatus(AuditStatus.SubCode subcode)
subcode
- public AuditStatus(AuditStatus.SubCode subcode, boolean datavalue)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public AuditStatus.Severity getSeverity()
public boolean isGood()
public short getRawSubCode()
public AuditStatus.SubCode getSubCode()
public boolean isStructureChanged()
public boolean isSemanticsChanged()
public AuditStatus.InfoType getInfoType()
public short getInfoBits()
public int getRawValue()
public static AuditStatus worstOf(AuditStatus q1, AuditStatus q2)
q1
- q2
- public static AuditStatus worstOfAll(AuditStatus... q)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()