blob: 7de695159f4a11f5a42dc43eb4685c3c8adb0c99 [file] [log] [blame]
Richard S. Hall930fecc2005-08-16 18:33:34 +00001/*
2 * Copyright 2005 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 */
Richard S. Hall5a031592005-08-19 19:53:58 +000017package org.apache.felix.bundlerepository.impl;
Richard S. Hall930fecc2005-08-16 18:33:34 +000018
Richard S. Hall5a031592005-08-19 19:53:58 +000019import org.apache.felix.bundlerepository.IAttribute;
Richard S. Hall930fecc2005-08-16 18:33:34 +000020
21public class R4Attribute implements IAttribute
22{
23 private String m_name = "";
24 private String m_value = "";
25 private boolean m_isMandatory = false;
26
27 public R4Attribute(String name, String value, boolean isMandatory)
28 {
29 m_name = name;
30 m_value = value;
31 m_isMandatory = isMandatory;
32 }
33
34 /* (non-Javadoc)
Richard S. Hall5a031592005-08-19 19:53:58 +000035 * @see org.ungoverned.osgi.service.impl.Attribute#getName()
Richard S. Hall930fecc2005-08-16 18:33:34 +000036 **/
37 public String getName()
38 {
39 return m_name;
40 }
41
42 /* (non-Javadoc)
Richard S. Hall5a031592005-08-19 19:53:58 +000043 * @see org.ungoverned.osgi.service.impl.Attribute#getValue()
Richard S. Hall930fecc2005-08-16 18:33:34 +000044 **/
45 public String getValue()
46 {
47 return m_value;
48 }
49
50 /* (non-Javadoc)
Richard S. Hall5a031592005-08-19 19:53:58 +000051 * @see org.ungoverned.osgi.service.impl.Attribute#isMandatory()
Richard S. Hall930fecc2005-08-16 18:33:34 +000052 **/
53 public boolean isMandatory()
54 {
55 return m_isMandatory;
56 }
57}