public class Messages extends Object
Constructor and Description |
---|
Messages(Map<IField,List<Message>> messages)
Instantiates a new abstract open shift resource.
|
Modifier and Type | Method and Description |
---|---|
List<Message> |
getAll() |
List<Message> |
getBy(IField field)
Returns all the message of the given field type.
|
List<Message> |
getBy(IField field,
ISeverity severity)
Returns the messages of the given field type and severity.
|
Message |
getFirstBy(IField field)
Returns the first message of the given field type.
|
Message |
getFirstBy(IField field,
ISeverity severity)
Returns the first message of the given field type and severity.
|
boolean |
hasMessages() |
int |
size() |
String |
toString() |
public Message getFirstBy(IField field, ISeverity severity)
#getCreationLog()
for further details.field
- the field typeseverity
- the severityMessage#FIELD_APPINFO
,
Message#FIELD_RESULT
,
ISeverity
public List<Message> getBy(IField field, ISeverity severity)
#getCreationLog()
for further details.field
- the field typeseverity
- the severityMessage#FIELD_APPINFO
,
Message#FIELD_RESULT
,
ISeverity
public Message getFirstBy(IField field)
#getCreationLog()
for further details.field
- the field typeMessage#FIELD_APPINFO
,
Message#FIELD_RESULT
public List<Message> getBy(IField field)
#getCreationLog()
for further details.field
- the field typeMessage#FIELD_APPINFO
,
Message#FIELD_RESULT
public boolean hasMessages()
public int size()
Copyright © 2016 JBoss by Red Hat. All rights reserved.