blob: 8bef9bc202b3b4dd96dd678b9d75c2f021587b91 [file] [log] [blame]
Carsten Ziegeler122a4042007-07-30 12:57:54 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
Carsten Ziegeler6c673232007-07-30 13:03:55 +000019package org.apache.felix.prefs;
Carsten Ziegeler122a4042007-07-30 12:57:54 +000020
21/**
22 * A preferences description identifies a preferences try.
23 * It is a unique identifier consisting of:
24 * - the bundle id
25 * - the preferences name which is not the node name but either
26 * null for the system preferences or the user name.
27 */
28public class PreferencesDescription {
29
30 protected final Long bundleId;
31
32 protected final String identifier;
33
34 public PreferencesDescription(Long id, String identifier) {
35 this.bundleId = id;
36 this.identifier = identifier;
37 }
38
39 public Long getBundleId() {
40 return this.bundleId;
41 }
42
43 public String getIdentifier() {
44 return this.identifier;
45 }
46}