[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units Body.java,1.2,1.3
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-04-11 21:08:33
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units
In directory usw-pr-cvs1:/tmp/cvs-serv4319/dev/src/net/sourceforge/idrs/deploy/compile/units
Modified Files:
Body.java
Log Message:
Added YesNo class, updated docs
Index: Body.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units/Body.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Body.java 4 Mar 2002 23:05:35 -0000 1.2
--- Body.java 11 Apr 2002 20:37:06 -0000 1.3
***************
*** 115,118 ****
--- 115,143 ----
state.getCurrentLine().addChunk(new TextChunk(val));
}
+
+ /**
+ * Handles the yesNo tag
+ */
+ public void yesNo(String val, Attributes atts) throws Exception {
+ String name,srcType,single;
+ int isrcType,isingle;
+
+ name = atts.getValue("name");
+ single = atts.getValue("single");
+ if (single == null || single.equalsIgnoreCase("")) {
+ isingle = YesNo.NOT_SINGLE;
+ }
+ else {
+ isingle = single.equalsIgnoreCase("yes") ? YesNo.SINGLE_YES : YesNo.SINGLE_NO;
+ }
+
+ srcType = atts.getValue("srcType");
+ if (srcType.equalsIgnoreCase("param")) isrcType = YesNo.SRC_PARAM;
+ else if (srcType.equalsIgnoreCase("db")) isrcType = YesNo.SRC_DB;
+ else isrcType = YesNo.SRC_PROP;
+
+ state.getCurrentLine().addChunk(new YesNo(name,isingle,isrcType,val));
+
+ }
/**
***************
*** 133,136 ****
--- 158,163 ----
state.getReport().getBody().seal();
}
+
+
}
|