Class ItemsErrorModel
- java.lang.Object
-
- net.uaznia.lukanus.hudson.plugins.gitparameter.model.ItemsErrorModel
-
- All Implemented Interfaces:
org.kohsuke.stapler.HttpResponse
@ExportedBean(defaultVisibility=4) @StaplerAccessibleType public class ItemsErrorModel extends Object implements org.kohsuke.stapler.HttpResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemsErrorModel.Option
-
Field Summary
Fields Modifier and Type Field Description static ItemsErrorModel
EMPTY
List<String>
errors
List<ItemsErrorModel.Option>
values
-
Constructor Summary
Constructors Constructor Description ItemsErrorModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String value)
void
add(String name, String value)
void
addError(String error)
static ItemsErrorModel
create(String value, String... errors)
void
generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node)
ItemsErrorModel.Option
get(int index)
List<String>
getErrors()
boolean
isEmpty()
int
size()
void
writeTo(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
-
-
-
Field Detail
-
EMPTY
public static final ItemsErrorModel EMPTY
-
values
@Exported public List<ItemsErrorModel.Option> values
-
-
Method Detail
-
add
public void add(String value)
-
size
public int size()
-
get
public ItemsErrorModel.Option get(int index)
-
isEmpty
public boolean isEmpty()
-
addError
public void addError(String error)
-
writeTo
public void writeTo(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
generateResponse
public void generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node) throws IOException, javax.servlet.ServletException
- Specified by:
generateResponse
in interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
javax.servlet.ServletException
-
create
public static ItemsErrorModel create(String value, String... errors)
-
-