@@ -0,0 +1,1153 @@
+/**%0A * Copyright (C) 2013 %E2%80%93 2015 SLUB Dresden & Avantgarde Labs GmbH (%3Ccode@dswarm.org%3E)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.dswarm.controller.resources;%0A%0Apublic enum POJOFormat %7B%0A%09FULL, MEDIUM, SHORT;%0A%0A%09// Required for Jersey, so that we can use 'full' instead of 'FULL'%0A%09@SuppressWarnings(%22UnusedDeclaration%22)%0A%09public static POJOFormat fromString(final String name) %7B%0A%09%09switch (name.toLowerCase()) %7B%0A%09%09%09case %22short%22:%0A%09%09%09%09return SHORT;%0A%09%09%09case %22medium%22:%0A%09%09%09%09return MEDIUM;%0A%09%09%09// case %22full%22:%0A%09%09%09// TODO: should we fail for an invalid format instead of defaulting to full?%0A%09%09%09default:%0A%09%09%09%09return FULL;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add PojoFormat enum