View Javadoc

1   /*
2    *  File: SysInfoEntry.java 
3    *  Copyright (c) 2004-2007  Peter Kliem (Peter.Kliem@jaret.de)
4    *  A commercial license is available, see http://www.jaret.de.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of the Common Public License v1.0
8    * which accompanies this distribution, and is available at
9    * http://www.eclipse.org/legal/cpl-v10.html
10   */
11  package de.jaret.util.infoprovider;
12  
13  /**
14   * An entry provided by JaretSystemInfoProviders
15   * 
16   * @author Peter Kliem
17   * @version $Id: SysInfoEntry.java 242 2007-02-11 21:05:07Z olk $
18   */
19  public class SysInfoEntry {
20      // Access levels
21      public final static int ACCESS_PUBLIC = 0;
22      public final static int ACCESS_INTERN = 1;
23      public final static int ACCESS_PRIVATE = 2;
24      public final static int ACCESS_DEBUG = 3;
25  
26      public String name;
27      public String value;
28      public int access = ACCESS_PUBLIC;
29  
30      public SysInfoEntry(String name, String val) {
31          this(name, val, ACCESS_PUBLIC);
32      }
33  
34      public SysInfoEntry(String name, String val, int access) {
35          this.name = name;
36          this.value = val;
37          this.access = access;
38      }
39  }