001: /*
002: * Copyright 2001-2006 C:1 Financial Services GmbH
003: *
004: * This software is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License Version 2.1, as published by the Free Software Foundation.
007: *
008: * This software is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: * Lesser General Public License for more details.
012: *
013: * You should have received a copy of the GNU Lesser General Public
014: * License along with this library; if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
016: */
017:
018: package de.finix.contelligent.xml.elements;
019:
020: import java.util.ArrayList;
021: import java.util.List;
022: import java.util.Vector;
023:
024: import de.finix.contelligent.logging.LoggingService;
025:
026: public class ComponentElement {
027: final static org.apache.log4j.Logger importLog = LoggingService
028: .getLogger(ComponentElement.class);
029:
030: private String name = "";
031:
032: private String dir = "";
033:
034: private String type = "";
035:
036: private String server = "";
037:
038: private List propertyElementList = new ArrayList();
039:
040: private ComponentMetainfoElement metaInfo;
041:
042: private List templateList = new ArrayList();
043:
044: private List sensitiveTemplateCategories = new ArrayList();
045:
046: private List sensitiveContentCategories = new ArrayList();
047:
048: private List resourceList = new ArrayList();
049:
050: private String renderer = "";
051:
052: private List metadataKeyElementList = new Vector();
053:
054: private List metadataValueElementList = new Vector();
055:
056: public void setName(String name) {
057: this .name = name;
058: }
059:
060: public String getName() {
061: return name;
062: }
063:
064: public void setServer(String server) {
065: this .server = server;
066: }
067:
068: public String getServer() {
069: return server;
070: }
071:
072: public void setType(String type) {
073: this .type = type;
074: }
075:
076: public String getType() {
077: return type;
078: }
079:
080: public void setDir(String dir) {
081: this .dir = dir;
082: }
083:
084: public String getDir() {
085: return dir;
086: }
087:
088: /*
089: * public void setSecureTransfer(String value) { secureTransfer = value; }
090: * public String getSecureTransfer() { return secureTransfer; }
091: */
092:
093: public void addSensitiveTemplateCategory(
094: SensitiveCategoryElement sensitiveCategory) {
095: sensitiveTemplateCategories.add(sensitiveCategory);
096: }
097:
098: public List getSensitiveTemplateCategories() {
099: return sensitiveTemplateCategories;
100: }
101:
102: public void addTemplateResource(ResourceElement templateResource) {
103: templateList.add(templateResource);
104: }
105:
106: public List getTemplateResourceList() {
107: return templateList;
108: }
109:
110: public void addSensitiveContentCategory(
111: SensitiveCategoryElement sensitiveCategory) {
112: sensitiveContentCategories.add(sensitiveCategory);
113: }
114:
115: public List getSensitiveContentCategories() {
116: return sensitiveContentCategories;
117: }
118:
119: public void addResource(ResourceElement textResource) {
120: resourceList.add(textResource);
121: }
122:
123: public List getResources() {
124: return resourceList;
125: }
126:
127: public void addPropertyElement(ComponentPropertyElement property) {
128: propertyElementList.add(property);
129: }
130:
131: public void addMetadataKeyElement(ComponentMetadataKeyElement key) {
132: metadataKeyElementList.add(key);
133: }
134:
135: public void addMetadataValueElement(
136: ComponentMetadataValueElement value) {
137: metadataValueElementList.add(value);
138: }
139:
140: public List getPropertyElementList() {
141: return propertyElementList;
142: }
143:
144: public List getMetadataKeyElementList() {
145: return metadataKeyElementList;
146: }
147:
148: public List getMetadataValueElementList() {
149: return metadataValueElementList;
150: }
151:
152: public void setMetainfoElement(ComponentMetainfoElement element) {
153: this .metaInfo = element;
154: }
155:
156: public ComponentMetainfoElement getMetainfoElement() {
157: return metaInfo;
158: }
159:
160: public String getRenderer() {
161: return renderer;
162: }
163:
164: public void setRenderer(String renderer) {
165: this .renderer = renderer;
166: }
167:
168: public String toString() {
169: StringBuffer buffer = new StringBuffer();
170:
171: buffer.append("[ComponentElement ");
172: buffer.append("name=");
173: buffer.append(name);
174: buffer.append(" ");
175: buffer.append("dir=");
176: buffer.append(dir);
177: buffer.append(" ");
178: buffer.append("type=");
179: buffer.append(type);
180: buffer.append(" ");
181: buffer.append("server=");
182: buffer.append(server);
183: buffer.append(" ");
184: buffer.append("propertyElementList=");
185: buffer.append(propertyElementList);
186: buffer.append(" ");
187: buffer.append("metaInfo=");
188: buffer.append(metaInfo);
189: buffer.append(" ");
190: buffer.append("templateList=");
191: buffer.append(templateList);
192: buffer.append(" ");
193: buffer.append("sensitiveTemplateCategories=");
194: buffer.append(sensitiveTemplateCategories);
195: buffer.append(" ");
196: buffer.append("sensitiveTemplateCategories=");
197: buffer.append(sensitiveTemplateCategories);
198: buffer.append(" ");
199: buffer.append("sensitiveContentCategories=");
200: buffer.append(sensitiveContentCategories);
201: buffer.append(" ");
202: buffer.append("resourceList=");
203: buffer.append(resourceList);
204: buffer.append(" ");
205: buffer.append("renderer=");
206: buffer.append(renderer);
207: buffer.append("]");
208:
209: return buffer.toString();
210: }
211: }
|