Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 1 | /* |
| 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. Hall | 5a03159 | 2005-08-19 19:53:58 +0000 | [diff] [blame^] | 17 | package org.apache.felix.bundlerepository.impl; |
Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 18 | |
Richard S. Hall | 5a03159 | 2005-08-19 19:53:58 +0000 | [diff] [blame^] | 19 | import org.apache.felix.bundlerepository.IAttribute; |
Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 20 | |
| 21 | public 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. Hall | 5a03159 | 2005-08-19 19:53:58 +0000 | [diff] [blame^] | 35 | * @see org.ungoverned.osgi.service.impl.Attribute#getName() |
Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 36 | **/ |
| 37 | public String getName() |
| 38 | { |
| 39 | return m_name; |
| 40 | } |
| 41 | |
| 42 | /* (non-Javadoc) |
Richard S. Hall | 5a03159 | 2005-08-19 19:53:58 +0000 | [diff] [blame^] | 43 | * @see org.ungoverned.osgi.service.impl.Attribute#getValue() |
Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 44 | **/ |
| 45 | public String getValue() |
| 46 | { |
| 47 | return m_value; |
| 48 | } |
| 49 | |
| 50 | /* (non-Javadoc) |
Richard S. Hall | 5a03159 | 2005-08-19 19:53:58 +0000 | [diff] [blame^] | 51 | * @see org.ungoverned.osgi.service.impl.Attribute#isMandatory() |
Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 52 | **/ |
| 53 | public boolean isMandatory() |
| 54 | { |
| 55 | return m_isMandatory; |
| 56 | } |
| 57 | } |