Added Android code
[wl-app.git] / Android / r2-streamer / r2-parser / src / main / java / org / readium / r2_streamer / model / publication / rendition / RenditionLayout.java
1 package org.readium.r2_streamer.model.publication.rendition;
2
3 /**
4  * Created by Shrikant Badwaik on 25-Jan-17.
5  */
6
7 public enum RenditionLayout {
8     REFLOWABLE("reflowable"), PREPAGINATED("pre-paginated");
9
10     String value;
11
12     RenditionLayout(String value) {
13         this.value = value;
14     }
15
16     public static RenditionLayout valueOfEnum(String name) {
17         for (RenditionLayout layout : RenditionLayout.values()) {
18             if (layout.value.equals(name)) {
19                 return layout;
20             }
21         }
22         throw new IllegalArgumentException(name);
23     }
24 }