01: /*
02: * $Id: SinglePropertyLiteral.java 10256 2008-01-08 15:20:25Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.config.spring.parsers.assembly.configuration;
12:
13: public class SinglePropertyLiteral implements SingleProperty {
14:
15: private boolean isCollection;
16: private boolean isIgnored;
17: private boolean isReference;
18:
19: public SinglePropertyLiteral(boolean isCollection,
20: boolean isIgnored, boolean isReference) {
21: this .isCollection = isCollection;
22: this .isIgnored = isIgnored;
23: this .isReference = isReference;
24: }
25:
26: public SinglePropertyLiteral(boolean isReference) {
27: this (false, false, isReference);
28: }
29:
30: public SinglePropertyLiteral() {
31: this (false, false, false);
32: }
33:
34: public boolean isCollection() {
35: return isCollection;
36: }
37:
38: public void setCollection() {
39: this .isCollection = true;
40: }
41:
42: public boolean isIgnored() {
43: return isIgnored;
44: }
45:
46: public void setIgnored() {
47: this .isIgnored = true;
48: }
49:
50: public boolean isReference() {
51: return isReference;
52: }
53:
54: public void setReference() {
55: this .isReference = true;
56: }
57:
58: }
|