WarningInfo

Inheritance: java.lang.Object

public final class WarningInfo

Immutable object for encapsulating warning information.

Constructors

ConstructorDescription
WarningInfo(int type, String message)Constructs instance for gathering information.

Methods

MethodDescription
getWarningMessage()Returns string representation of warning message.
getWarningTypeProperty()Returns warning type.

WarningInfo(int type, String message)

public WarningInfo(int type, String message)

Constructs instance for gathering information.

Parameters:

ParameterTypeDescription
typeintthe warning type to set
messagejava.lang.Stringthe warning message to set

getWarningMessage()

public String getWarningMessage()

Returns string representation of warning message.

Returns: java.lang.String - the warning message

getWarningTypeProperty()

public int getWarningTypeProperty()

Returns warning type.

Returns: int - the warning type