KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > schema > SpringContextBean


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.config.schema;
5
6 import java.util.Arrays JavaDoc;
7
8 /**
9  * Represents the <code>beans</code> config element hierarchy
10  */

11 public class SpringContextBean {
12
13   private String JavaDoc name;
14   private String JavaDoc[] nonDistributedFields;
15
16   public SpringContextBean(String JavaDoc name, String JavaDoc[] nonDistributedFields) {
17     this.name = name;
18     this.nonDistributedFields = nonDistributedFields;
19   }
20
21   public String JavaDoc name() {
22     return name;
23   }
24
25   public String JavaDoc[] nonDistributedFields() {
26     return nonDistributedFields;
27   }
28   
29   public String JavaDoc toString() {
30     return "BEAN: " + name + "\nFIELDS:\n\n" + Arrays.asList(nonDistributedFields);
31   }
32 }
33
Popular Tags