public abstract class Symptom
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Symptom.Severity |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SEVERITY |
static boolean |
DEFAULT_VALID |
java.lang.String |
details |
java.lang.String |
id |
java.lang.String |
severity |
boolean |
valid |
java.lang.String |
value |
Constructor and Description |
---|
Symptom() |
Symptom(Symptom o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Symptom.
|
static Symptom |
fromString(java.lang.String s)
String representation of this Symptom.
|
java.lang.String |
getDetails()
Details on the issue such as components affected.
|
java.lang.String |
getId()
ID of the issue
|
java.lang.String |
getSeverity()
Level of symptom's severity.
|
Symptom.Severity |
getSeverityAsEnum()
Level of symptom's severity.
|
java.lang.String |
getValue()
Description of the issue
|
static boolean |
isA(java.lang.String str,
Symptom.Severity item) |
static boolean |
isOneOf(java.lang.String str,
Symptom.Severity... items) |
boolean |
isValid()
Is the issue in a valid state?
|
Symptom |
makeCopy() |
static Symptom |
readFrom(java.io.InputStream is)
Read this Symptom from an XML fragment.
|
void |
setDetails(java.lang.String details)
Details on the issue such as components affected.
|
void |
setId(java.lang.String id)
ID of the issue
|
void |
setSeverity(java.lang.String severity)
Level of symptom's severity.
|
void |
setSeverity(Symptom.Severity item)
Level of symptom's severity.
|
void |
setValid(boolean valid)
Is the issue in a valid state?
|
void |
setValue(java.lang.String value)
Description of the issue
|
java.lang.String |
toString()
String representation of this Symptom.
|
Symptom |
withDetails(java.lang.String details) |
Symptom |
withId(java.lang.String id) |
Symptom |
withSeverity(java.lang.String severity) |
Symptom |
withValid(boolean valid) |
Symptom |
withValid(java.lang.Boolean valid) |
Symptom |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String id
public boolean valid
public static final boolean DEFAULT_VALID
public java.lang.String severity
public static final java.lang.String DEFAULT_SEVERITY
public java.lang.String value
public java.lang.String details
public Symptom()
public Symptom(Symptom o)
public static boolean isA(java.lang.String str, Symptom.Severity item)
public static boolean isOneOf(java.lang.String str, Symptom.Severity... items)
public void setSeverity(Symptom.Severity item)
public Symptom.Severity getSeverityAsEnum()
public void setId(java.lang.String id)
public java.lang.String getId()
public Symptom withId(java.lang.String id)
public void setValid(boolean valid)
public boolean isValid()
public Symptom withValid(boolean valid)
public Symptom withValid(java.lang.Boolean valid)
public void setSeverity(java.lang.String severity)
public java.lang.String getSeverity()
public Symptom withSeverity(java.lang.String severity)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public Symptom withValue(java.lang.String value)
public void setDetails(java.lang.String details)
public java.lang.String getDetails()
public Symptom withDetails(java.lang.String details)
public Symptom makeCopy()
public static Symptom readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Symptom fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.