1
2
3
4
5
6 package it.imolinfo.jbi4corba.jbi.wsdl;
7
8 import org.apache.commons.lang.builder.EqualsBuilder;
9 import org.apache.commons.lang.builder.HashCodeBuilder;
10 import org.apache.commons.lang.builder.ReflectionToStringBuilder;
11
12
13
14
15
16 public class Jbi4CorbaIDLEntry {
17 private String IDL;
18 private String idlFilename=Jbi4CorbaExtension.DEFAULT_FILENAME;
19 private String relativePath=Jbi4CorbaExtension.DEFAULT_RELATIVE_PATH;
20 private boolean root=Jbi4CorbaExtension.DEFAULT_ROOT;
21
22 public static final Jbi4CorbaIDLEntry DEFAULT_CORBA_IDL_ENTRY=new Jbi4CorbaIDLEntry();
23
24 static {
25 DEFAULT_CORBA_IDL_ENTRY.setIdlFilename(Jbi4CorbaExtension.DEFAULT_FILENAME);
26 DEFAULT_CORBA_IDL_ENTRY.setRelativePath(Jbi4CorbaExtension.DEFAULT_RELATIVE_PATH);
27 DEFAULT_CORBA_IDL_ENTRY.setRoot(Jbi4CorbaExtension.DEFAULT_ROOT);
28 }
29
30 public Jbi4CorbaIDLEntry() {
31 }
32
33 public String getIDL() {
34 return IDL;
35 }
36
37 public void setIDL(String IDL) {
38 this.IDL = IDL;
39 }
40
41 public String getIdlFilename() {
42 return idlFilename;
43 }
44
45 public void setIdlFilename(String idlFilename) {
46 this.idlFilename = idlFilename;
47 }
48
49 public String getRelativePath() {
50 return relativePath;
51 }
52
53 public void setRelativePath(String relativePath) {
54 this.relativePath = relativePath;
55 }
56
57 public boolean isRoot() {
58 return root;
59 }
60
61 public void setRoot(boolean root) {
62 this.root = root;
63 }
64
65
66
67
68 public String toString() {
69 return ReflectionToStringBuilder.toString(this);
70 }
71
72
73
74
75
76
77 public boolean equals(Object obj) {
78 return EqualsBuilder.reflectionEquals(this, obj);
79 }
80
81
82
83
84 public int hashCode() {
85 return HashCodeBuilder.reflectionHashCode(17, 37, this);
86 }
87
88 public boolean isDefault(){
89 return DEFAULT_CORBA_IDL_ENTRY.root==this.root && DEFAULT_CORBA_IDL_ENTRY.idlFilename.equals(this.idlFilename) && DEFAULT_CORBA_IDL_ENTRY.relativePath.equals(this.relativePath);
90 }
91
92
93
94 }