[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units Body.java,1.8,1.9
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2003-03-17 14:05:35
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units
In directory sc8-pr-cvs1:/tmp/cvs-serv25653/dev/src/net/sourceforge/idrs/deploy/compile/units
Modified Files:
Body.java
Log Message:
Added Initial EJB Support
Index: Body.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units/Body.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Body.java 6 Feb 2003 20:13:45 -0000 1.8
--- Body.java 17 Mar 2003 14:05:00 -0000 1.9
***************
*** 78,81 ****
--- 78,88 ----
public void field(String val,Attributes atts) throws Exception {
+
+ if (val.equalsIgnoreCase("<LineNum>") || val.equalsIgnoreCase("<ForeColor>") || val.equalsIgnoreCase("<BackColor>")) {
+ Line line = state.getCurrentLine();
+ line.addChunk(new net.sourceforge.idrs.core.report.FieldChunk("",val,"",state.getCurrentRepeatLine()));
+ return;
+ }
+
if (val.indexOf(".") == -1) {
state.setErrorWord(val);
***************
*** 146,158 ****
name = atts.getValue("name");
- if (val.indexOf(".") == -1) {
- state.setErrorWord(val);
- throw new Exception("Not A Valid Source Field");
- }
! if (state.getReport().getHead().getAllDBs().get(val.substring(0,val.indexOf("."))) == null) {
! state.setErrorWord(val);
! throw new Exception(val.substring(0,val.indexOf(".")) + " is not a valid DB");
! }
--- 153,159 ----
name = atts.getValue("name");
!
!
***************
*** 180,183 ****
--- 181,193 ----
}
+ if (isrcType == YesNo.SRC_DB && val.indexOf(".") == -1) {
+ state.setErrorWord(val);
+ throw new Exception("Not A Valid Source Field");
+ }
+
+ if (isrcType == YesNo.SRC_DB && state.getReport().getHead().getAllDBs().get(val.substring(0,val.indexOf("."))) == null) {
+ state.setErrorWord(val);
+ throw new Exception(val.substring(0,val.indexOf(".")) + " is not a valid DB");
+ }
state.getCurrentLine().addChunk(new YesNo(name,isingle,isrcType,val,attribs,paramFirst));
|