01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2007 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: *
22: * $Id: TransformerMessage.java 9151 2007-09-19 14:00:03Z mpreston $
23: */
24: package com.bostechcorp.cbesb.runtime.transformer.engine;
25:
26: import java.util.HashMap;
27: import javax.activation.DataHandler;
28: import javax.xml.transform.Source;
29:
30: import org.w3c.dom.Document;
31:
32: public class TransformerMessage {
33:
34: private Source source;
35:
36: private Document document;
37:
38: private HashMap<String, Object> metadataMap;
39:
40: private HashMap<String, DataHandler> attachmentMap;
41:
42: /**
43: * @return the attachmentMap
44: */
45: public HashMap<String, DataHandler> getAttachmentMap() {
46: return attachmentMap;
47: }
48:
49: /**
50: * @param attachmentMap the attachmentMap to set
51: */
52: public void setAttachmentMap(
53: HashMap<String, DataHandler> attachmentMap) {
54: this .attachmentMap = attachmentMap;
55: }
56:
57: /**
58: * @return the document
59: */
60: public Document getDocument() {
61: return document;
62: }
63:
64: /**
65: * @param document the document to set
66: */
67: public void setDocument(Document document) {
68: this .document = document;
69: }
70:
71: /**
72: * @return the metadataMap
73: */
74: public HashMap<String, Object> getMetadataMap() {
75: return metadataMap;
76: }
77:
78: /**
79: * @param metadataMap the metadataMap to set
80: */
81: public void setMetadataMap(HashMap<String, Object> metadataMap) {
82: this .metadataMap = metadataMap;
83: }
84:
85: /**
86: * @return the source
87: */
88: public Source getSource() {
89: return source;
90: }
91:
92: /**
93: * @param source the source to set
94: */
95: public void setSource(Source source) {
96: this.source = source;
97: }
98:
99: }
|