com.atlassian.jira.rest.v1.model.errors
Class ErrorCollection.Builder

java.lang.Object
  extended by com.atlassian.jira.rest.v1.model.errors.ErrorCollection.Builder
Enclosing class:
ErrorCollection

public static class ErrorCollection.Builder
extends Object

Builder used to create a new immutable error collection.


Method Summary
 ErrorCollection.Builder addError(String field, String errorKey, String... params)
           
 ErrorCollection.Builder addErrorCollection(ErrorCollection errorCollection)
           
 ErrorCollection.Builder addErrorMessage(String errorMessage)
           
 ErrorCollection build()
           
static ErrorCollection.Builder newBuilder()
           
static ErrorCollection.Builder newBuilder(Collection<ValidationError> errors)
           
static ErrorCollection.Builder newBuilder(ErrorCollection errorCollection)
           
static ErrorCollection.Builder newBuilder(Set<String> errorMessages)
           
static ErrorCollection.Builder newBuilder(ValidationError... errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newBuilder

public static ErrorCollection.Builder newBuilder()

newBuilder

public static ErrorCollection.Builder newBuilder(ValidationError... errors)

newBuilder

public static ErrorCollection.Builder newBuilder(Set<String> errorMessages)

newBuilder

public static ErrorCollection.Builder newBuilder(Collection<ValidationError> errors)

newBuilder

public static ErrorCollection.Builder newBuilder(ErrorCollection errorCollection)

addErrorCollection

public ErrorCollection.Builder addErrorCollection(ErrorCollection errorCollection)

addErrorMessage

public ErrorCollection.Builder addErrorMessage(String errorMessage)

addError

public ErrorCollection.Builder addError(String field,
                                        String errorKey,
                                        String... params)

build

public ErrorCollection build()


Copyright © 2002-2012 Atlassian. All Rights Reserved.