001: package org.drools;
002:
003: /*
004: * Copyright 2005 JBoss Inc
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: public class Primitives {
020: private boolean booleanPrimitive;
021:
022: private char charPrimitive;
023:
024: private byte bytePrimitive;
025: private short shortPrimitive;
026: private int intPrimitive;
027: private long longPrimitive;
028:
029: private float floatPrimitive;
030: private float doublePrimitive;
031: private String stringAttribute;
032: private Object[] arrayAttribute;
033: private int[] primitiveArrayAttribute;
034: private String[] stringArray;
035:
036: private Boolean booleanWrapper;
037:
038: public boolean isBooleanPrimitive() {
039: return this .booleanPrimitive;
040: }
041:
042: public void setBooleanPrimitive(final boolean booleanPrimitive) {
043: this .booleanPrimitive = booleanPrimitive;
044: }
045:
046: public byte getBytePrimitive() {
047: return this .bytePrimitive;
048: }
049:
050: public void setBytePrimitive(final byte bytePrimitive) {
051: this .bytePrimitive = bytePrimitive;
052: }
053:
054: public char getCharPrimitive() {
055: return this .charPrimitive;
056: }
057:
058: public void setCharPrimitive(final char charPrimitive) {
059: this .charPrimitive = charPrimitive;
060: }
061:
062: public float getDoublePrimitive() {
063: return this .doublePrimitive;
064: }
065:
066: public void setDoublePrimitive(final float doublePrimitive) {
067: this .doublePrimitive = doublePrimitive;
068: }
069:
070: public float getFloatPrimitive() {
071: return this .floatPrimitive;
072: }
073:
074: public void setFloatPrimitive(final float floatPrimitive) {
075: this .floatPrimitive = floatPrimitive;
076: }
077:
078: public int getIntPrimitive() {
079: return this .intPrimitive;
080: }
081:
082: public void setIntPrimitive(final int intPrimitive) {
083: this .intPrimitive = intPrimitive;
084: }
085:
086: public long getLongPrimitive() {
087: return this .longPrimitive;
088: }
089:
090: public void setLongPrimitive(final long longPrimitive) {
091: this .longPrimitive = longPrimitive;
092: }
093:
094: public short getShortPrimitive() {
095: return this .shortPrimitive;
096: }
097:
098: public void setShortPrimitive(final short shortPrimitive) {
099: this .shortPrimitive = shortPrimitive;
100: }
101:
102: public Object[] getArrayAttribute() {
103: return this .arrayAttribute;
104: }
105:
106: public void setArrayAttribute(final Object[] arrayAttribute) {
107: this .arrayAttribute = arrayAttribute;
108: }
109:
110: /**
111: * @return the primitiveArrayAttribute
112: */
113: public int[] getPrimitiveArrayAttribute() {
114: return this .primitiveArrayAttribute;
115: }
116:
117: /**
118: * @param primitiveArrayAttribute the primitiveArrayAttribute to set
119: */
120: public void setPrimitiveArrayAttribute(
121: final int[] primitiveArrayAttribute) {
122: this .primitiveArrayAttribute = primitiveArrayAttribute;
123: }
124:
125: public String[] getStringArray() {
126: return stringArray;
127: }
128:
129: public void setStringArray(String[] stringArray) {
130: this .stringArray = stringArray;
131: }
132:
133: public String getStringAttribute() {
134: return stringAttribute;
135: }
136:
137: public void setStringAttribute(String stringAttribute) {
138: this .stringAttribute = stringAttribute;
139: }
140:
141: public Boolean getBooleanWrapper() {
142: return booleanWrapper;
143: }
144:
145: public void setBooleanWrapper(Boolean booleanWrapper) {
146: this.booleanWrapper = booleanWrapper;
147: }
148:
149: }
|