001/* 002 * Copyright 2019 nils.hoffmann. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package de.isas.lipidomics.domain; 017 018import lombok.AllArgsConstructor; 019import lombok.Data; 020 021/** 022 * A generic lipid fragment. There is currently no further specialization in 023 * fragment handling available, since the nomenclature is still not standardized 024 * in a way that would allow for generic detection of fragment-specific 025 * features. 026 * 027 * @author nils.hoffmann 028 */ 029@AllArgsConstructor 030@Data 031public class Fragment { 032 private static final class None extends Fragment { 033 034 private None() { 035 super(""); 036 } 037 } 038 039 public static final Fragment NONE = new None(); 040 041 private String name; 042 043 public String getLipidString() { 044 return name; 045 } 046}