OpenShift Java Client 2.5.0.Final

com.openshift.client
Class Messages

java.lang.Object
  extended by com.openshift.client.Messages

public class Messages
extends Object

Author:
Andre Dietisheim

Constructor Summary
Messages(Map<IField,List<Message>> messages)
          Instantiates a new abstract open shift resource.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Messages

public Messages(Map<IField,List<Message>> messages)
Instantiates a new abstract open shift resource.

Parameters:
service - the service
links - the links
Method Detail

getAll

public List<Message> getAll()

getFirstBy

public Message getFirstBy(IField field,
                          ISeverity severity)
Returns the first message of the given field type and severity. The messages only exist at creation time. See #getCreationLog() for further details.

Parameters:
field - the field type
severity - the severity
Returns:
See Also:
Message#FIELD_APPINFO, Message#FIELD_RESULT, ISeverity

getBy

public List<Message> getBy(IField field,
                           ISeverity severity)
Returns the messages of the given field type and severity. These messages only exist at creation time. See #getCreationLog() for further details.

Parameters:
field - the field type
severity - the severity
Returns:
See Also:
Message#FIELD_APPINFO, Message#FIELD_RESULT, ISeverity

getFirstBy

public Message getFirstBy(IField field)
Returns the first message of the given field type. The messages only exist at creation time. See #getCreationLog() for further details.

Parameters:
field - the field type
Returns:
See Also:
Message#FIELD_APPINFO, Message#FIELD_RESULT

getBy

public List<Message> getBy(IField field)
Returns all the message of the given field type. The messages only exist at creation time. See #getCreationLog() for further details.

Parameters:
field - the field type
Returns:
See Also:
Message#FIELD_APPINFO, Message#FIELD_RESULT

hasMessages

public boolean hasMessages()

size

public int size()

toString

public String toString()
Overrides:
toString in class Object

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.