View Javadoc

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 CyclicDependencyConfiguration {
31  
32  
33      protected static final Log log = LogFactory.getLog(
34              CyclicDependencyConfiguration.class);
35  
36      /***
37       * <p>Holds the value for the XML entry <tt>&lt;cyclicalDependency
38       * test="true"/&gt;</tt>.</p>
39       *
40       * <p>If the value is not provided in the configuration, the default value
41       * is used. {@link ConfigurationFactory#DEFAULT_CYCLICAL_DEPENDENCY_CONFIGURATION_VALUE}</p>
42       */
43      private String test =
44              ConfigurationFactory.DEFAULT_CYCLICAL_DEPENDENCY_CONFIGURATION_VALUE;
45  
46  
47      /***
48       * Getter for property 'test'.
49       *
50       * @return Value for property 'test'.
51       */
52      public String getTest() {
53  
54          return test;
55      }
56  
57  
58      /***
59       * Setter for property 'test'.
60       *
61       * @param test Value to set for property 'test'.
62       */
63      public void setTest(final String test) {
64  
65          if (test != null && !test.equalsIgnoreCase("null"))
66              this.test = test;
67      }
68  }