blob: 08bc867efdd7d34a91b4754acd141c3f0659ecb8 [file] [log] [blame]
Stefano Lenzi476013d2007-09-21 23:59: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 */
19package org.apache.felix.sandbox.obr.plugin;
20
21/**
22 * this class is used to store some user information about configuration of the plugin.
23 * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
24 *
25 */
26public class Config {
27
28 /**
29 * use relative path or not.
30 */
31 private boolean m_pathRelative; // use relative or absolute path in repository.xml
32
33 /**
34 * deploy file or not.
35 */
36 private boolean m_fileRemote; // deploy file on remote server
37
38 /**
39 * constructor: set default configuration: use relative path and don't upload file.
40 *
41 */
42 public Config() {
43 // default configuration
44 m_pathRelative = true;
45 m_fileRemote = false;
46 }
47
48 /**
49 * set relativePath attribute.
50 * @param value new value of attribute
51 */
52 public void setPathRelative(boolean value) {
53 m_pathRelative = value;
54 }
55
56 /**
57 * set fileRemote attribute.
58 * @param value new value of attribute
59 */
60 public void setRemotely(boolean value) {
61 m_fileRemote = value;
62 }
63
64 /**
65 * get use path relative.
66 * @return true if plugin use relative path, else false
67 */
68 public boolean isPathRelative() {
69 return m_pathRelative;
70 }
71
72 /**
73 * get if use upload file.
74 * @return true if the file will be uploaded, else false
75 */
76 public boolean isRemotely() {
77 return m_fileRemote;
78 }
79}