View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.config.spring.parsers.assembly.configuration;
8   
9   public class SinglePropertyLiteral implements SingleProperty
10  {
11  
12      private boolean isCollection;
13      private boolean isIgnored;
14      private boolean isReference;
15  
16      public SinglePropertyLiteral(boolean isCollection, boolean isIgnored, boolean isReference)
17      {
18          this.isCollection = isCollection;
19          this.isIgnored = isIgnored;
20          this.isReference = isReference;
21      }
22  
23      public SinglePropertyLiteral(boolean isReference)
24      {
25          this(false, false, isReference);
26      }
27  
28      public SinglePropertyLiteral()
29      {
30          this(false, false, false);
31      }
32  
33      public boolean isCollection()
34      {
35          return isCollection;
36      }
37  
38      public void setCollection()
39      {
40          this.isCollection = true;
41      }
42  
43      public boolean isIgnored()
44      {
45          return isIgnored;
46      }
47  
48      public void setIgnored()
49      {
50          this.isIgnored = true;
51      }
52  
53      public boolean isReference()
54      {
55          return isReference;
56      }
57  
58      public void setReference()
59      {
60          this.isReference = true;
61      }
62  
63  }