View Javadoc

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