diff --git a/src/main/java/io/gravitee/repository/management/model/Page.java b/src/main/java/io/gravitee/repository/management/model/Page.java index 3df6c817..a484a4de 100644 --- a/src/main/java/io/gravitee/repository/management/model/Page.java +++ b/src/main/java/io/gravitee/repository/management/model/Page.java @@ -30,7 +30,7 @@ public class Page { private String name; - private String type; + private PageType type; private String content; @@ -57,7 +57,7 @@ public void setId(String id) { this.id = id; } - public String getType() { + public PageType getType() { return type; } @@ -69,7 +69,7 @@ public void setName(String name) { this.name = name; } - public void setType(String type) { + public void setType(PageType type) { this.type = type; } diff --git a/src/main/java/io/gravitee/repository/management/model/PageType.java b/src/main/java/io/gravitee/repository/management/model/PageType.java new file mode 100644 index 00000000..0587df0a --- /dev/null +++ b/src/main/java/io/gravitee/repository/management/model/PageType.java @@ -0,0 +1,29 @@ +/** + * Copyright (C) 2015 The Gravitee team (http://gravitee.io) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.gravitee.repository.management.model; + +/** + * @author Ludovic Dussart (ludovic.dussart at gmail.com) + * Managed types for page documentation + * + */ +public enum PageType { + + MARKDOWN, + RAML, + SWAGGER + +}