1 /***
2 * Copyright 2007 the original author or authors.
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 * For more information visit
11 * http://72miles.com and
12 * http://architecturerules.googlecode.com/svn/docs/index.html
13 */
14
15 package com.seventytwomiles.architecturerules.domain;
16
17
18 import com.seventytwomiles.architecturerules.configuration.ConfigurationFactory;
19 import org.apache.commons.logging.Log;
20 import org.apache.commons.logging.LogFactory;
21
22
23
24 /***
25 * <p>Represents the configuration information read from the XML configuration
26 * file.</p>
27 *
28 * @author mikenereson
29 */
30 public class SourcesConfiguration {
31
32
33 protected static final Log log
34 = LogFactory.getLog(SourcesConfiguration.class);
35
36 /***
37 * <p></p>
38 *
39 * @parameter noPackages String
40 * @see ConfigurationFactory#DEFAULT_NO_PACKAGES_CONFIGURATION_BOOLEAN_VALUE
41 */
42 private String noPackages = "ignore";
43
44
45 /***
46 * <p>Instantiate a new SourcesConfiguration</p>
47 */
48 public SourcesConfiguration() {
49 }
50
51
52 /***
53 * <p>Instantiates a new SourcesConfiguration with the given
54 * <tt>noPackages</tt> value.</p>
55 *
56 * @param noPackages String
57 */
58 public SourcesConfiguration(final String noPackages) {
59 this.noPackages = noPackages;
60 }
61
62
63 /***
64 * Getter for property 'noPackages'.
65 *
66 * @return Value for property 'noPackages'.
67 */
68 public String getNoPackages() {
69 return noPackages;
70 }
71
72
73 /***
74 * Setter for property 'noPackages'.
75 *
76 * @param noPackages Value to set for property 'noPackages'.
77 */
78 public void setNoPackages(final String noPackages) {
79 this.noPackages = noPackages;
80 }
81 }