universe@21: /* universe@21: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. universe@21: * universe@24: * Copyright 2018 Mike Becker. All rights reserved. universe@21: * universe@21: * Redistribution and use in source and binary forms, with or without universe@21: * modification, are permitted provided that the following conditions are met: universe@21: * universe@21: * 1. Redistributions of source code must retain the above copyright universe@21: * notice, this list of conditions and the following disclaimer. universe@21: * universe@21: * 2. Redistributions in binary form must reproduce the above copyright universe@21: * notice, this list of conditions and the following disclaimer in the universe@21: * documentation and/or other materials provided with the distribution. universe@21: * universe@21: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@21: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@21: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE universe@21: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE universe@21: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR universe@21: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF universe@21: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS universe@21: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN universe@21: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) universe@21: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE universe@21: * POSSIBILITY OF SUCH DAMAGE. universe@21: * universe@21: */ universe@21: package de.uapcore.lightpit.entities; universe@21: universe@21: import de.uapcore.lightpit.LightPITModule; universe@21: universe@21: public class Module { universe@21: private int modID; universe@21: private String classname; universe@21: private boolean visible; universe@21: universe@21: private LightPITModule.ELProxy annotatedInfos; universe@21: universe@21: public int getModID() { universe@21: return modID; universe@21: } universe@21: universe@21: public void setModID(int modID) { universe@21: this.modID = modID; universe@21: } universe@21: universe@21: public String getClassname() { universe@21: return classname; universe@21: } universe@21: universe@21: public void setClassname(String classname) { universe@21: this.classname = classname; universe@21: } universe@21: universe@21: public boolean isVisible() { universe@21: return visible; universe@21: } universe@21: universe@21: public void setVisible(boolean visible) { universe@21: this.visible = visible; universe@21: } universe@21: universe@21: public LightPITModule.ELProxy getAnnotatedInfos() { universe@21: return annotatedInfos; universe@21: } universe@21: universe@21: public void setAnnotatedInfos(LightPITModule.ELProxy annotatedInfos) { universe@21: this.annotatedInfos = annotatedInfos; universe@21: } universe@21: universe@21: @Override universe@21: public int hashCode() { universe@21: int hash = 3; universe@21: hash = 41 * hash + this.modID; universe@21: return hash; universe@21: } universe@21: universe@21: @Override universe@21: public boolean equals(Object obj) { universe@21: if (this == obj) { universe@21: return true; universe@21: } universe@21: if (obj == null || getClass() != obj.getClass()) { universe@21: return false; universe@21: } else { universe@21: return this.modID == ((Module) obj).modID; universe@21: } universe@21: } universe@21: }