1 /* 2 * Copyright 2001-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.jdiagnose.remote.provider; 17 18 import java.util.Locale; 19 20 import org.jdiagnose.remote.system.RemoteSystem; 21 22 /*** 23 * @author jmccrindle 24 */ 25 public class DefaultSystemHolder implements SystemHolder { 26 27 private String id; 28 private String description; 29 private RemoteSystem remoteSystem; 30 31 /* (non-Javadoc) 32 * @see org.jdiagnose.remote.provider.SystemHolder#getId() 33 */ 34 public String getId() { 35 return id; 36 } 37 38 /* (non-Javadoc) 39 * @see org.jdiagnose.remote.provider.SystemHolder#getDescription(java.util.Locale) 40 */ 41 public String getDescription(Locale locale) { 42 return description; 43 } 44 45 /* (non-Javadoc) 46 * @see org.jdiagnose.remote.provider.SystemHolder#getRemoteSystem() 47 */ 48 public RemoteSystem getRemoteSystem() { 49 return remoteSystem; 50 } 51 52 public void setDescription(String description) { 53 this.description = description; 54 } 55 56 public void setId(String id) { 57 this.id = id; 58 } 59 60 public void setRemoteSystem(RemoteSystem remoteSystem) { 61 this.remoteSystem = remoteSystem; 62 } 63 64 }