Commit Graph
1801 Commits
Author SHA1 Message Date
Adam Heath 75bd046632 Add Byte converters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908686 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:20:48 +00:00
Adam Heath 3645dcee6b Add Short converters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908684 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:17:52 +00:00
Adam Heath 089a817e62 Add BigInteger converters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908681 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:14:45 +00:00
Adam Heath fa8dc60733 Upgrade javolution library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908678 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:12:50 +00:00
Adam Heath 85ddfba2fe Full code coverage on the unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908676 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:10:44 +00:00
Adam Heath f98ed2d050 Remove embedded tabs added by Adrian.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908673 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:09:34 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Adrian Crum 6f120ae631 Added JavaDocs and changed some parameter names in FlexibleStringExpander.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907117 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 22:34:53 +00:00
Adrian Crum faed3cb1c5 Added expression escaping to the FlexibleStringExpander unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906605 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 18:49:40 +00:00
Adrian Crum b2fbc7ad69 Removed the NullExpr class that was created to fix the problem with checking FlexibleStringExpander.getOriginal() for null.
This commit might affect user modifications. Any code that checks FlexibleStringExpander.getOriginal() for null should be changed to use FlexibleStringExpander.isEmpty() instead.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905864 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 01:47:45 +00:00
Adrian Crum 79d931717d Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905763 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 19:54:31 +00:00
Adrian Crum 084e4691d2 Made a small change to FlexibleStringExpander - created a NullElem class to support existing client code that tested getOriginal() for null. By the way, that is a bad practice - use the isEmpty() method instead.
Problem reported by Scott and Hans on the dev mailing list.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905696 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 16:35:28 +00:00
Adrian Crum 934712e75f Revert my change to base component build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905129 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 21:51:38 +00:00
Adrian Crum 5cc09d78fc Updated the ical4j library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905128 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 21:48:22 +00:00
Adrian Crum a1df25e132 Updated the commons-lang library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905120 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 21:16:17 +00:00
Adrian Crum 93aea39578 Updated the commons-codec library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905115 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 20:32:14 +00:00
Adrian Crum c2ec08d31b Added a unit test for StringUtil.java. I commented out the new webslinger tests which seem to fail every time.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905114 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 20:25:46 +00:00
Adam Heath 7fcec6d23b First bit of real webslinger code. TTLObject is designed to save the
result of a single method call, so that it doesn't get called over and
over again.  It's non-blocking in all cases, supports synchronous and
asynchronous update modes, and will even save thrown exceptions.

Nothing in ofbiz uses this yet; that will require rather extensive
testing and profiling, which is difficult until more of ofbiz actually
has full test coverage; there's no reason to fix any slowdowns now until
you know all code is actually correct.

Test coverage on TTLObject is almost completely full; there are some
missed branches on switch statements that use enum(there are google
discussions about this, it's just not possible to do).  Some of the
configuration methods aren't covered either.  However, all switch
branches *are* covered.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904987 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:34:35 +00:00
Adam Heath d86c60c3ba Add a helper method to test futures.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904986 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:27:41 +00:00
Adam Heath 9ef56b79aa Delete cobertura.dat for each run, so that different runs don't overlap
each others line numbers.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904985 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:57 +00:00
Adrian Crum cddeb581b9 Partially revert my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904971 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 04:00:57 +00:00
Adrian Crum 988097907e Based on advice from Adam Heath, made FlexibleMapAccessor and UelUtil methods syntactically correct. Methods that read Maps take read-only Map arguments, and methods that write Maps take writable Map arguments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904962 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 03:24:58 +00:00
Adrian Crum b416829c08 Upgraded JUEL library to 2.2.1.
The UEL specification (JSR 245) has been updated. Object method invocations are now supported.

http://jcp.org/aboutJava/communityprocess/mrel/jsr245/index.html

The new JUEL library also supports method varargs, but keep in mind that it is a JUEL extension - not a part of JSR 245.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904937 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:38:59 +00:00
Adrian Crum 734f6068c7 Some changes to the UEL integration. While attempting to upgrade the JUEL library, some flaws in my original code were exposed. This commit fixes them. Also, I added some more unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904921 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:08:14 +00:00
Adrian Crum 2ca08fd687 FlexibleStringExpander.java improvements and new unit tests. The main purpose of the change is to reduce the memory footprint of non-cached instances (more than 78,000 at this time).
Two small functional changes:

1. Elminated the deprecated "env." syntax support.
2. Added support for runtime expression nesting.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904592 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 19:03:43 +00:00
Adam Heath 00e090f9cb MapStack now extends MapContext.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904249 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:00 +00:00
Adam Heath 7873922c09 Add a map stack implementation that is not hard-coded to only take
string keys, and doesn't auto-add itself as 'context'.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904248 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:34 +00:00
Adam Heath 002e61fb9e Add a new getPropertyNumber variant that takes a url.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904247 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:00 +00:00
Adam Heath 605c4e4087 Add a bunch more convertors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903804 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:54:00 +00:00
Adam Heath 83c49e9095 Fix handling of default values in getPropertyNumber.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903766 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 17:55:13 +00:00
Jacques Le Roux e03e7ad6f2 After Adam's remark about formatting (actually mostly about Double instead of double), Sascha provided a new patch which was still not well formatted. So I decided to use the same formatting than in getPropertyValue. Even if it does not follow the "brackets around blocks rule" Sun convention. I have explained this a bit to Sascha at https://issues.apache.org/jira/browse/OFBIZ-3425 "Extend getPropertyNumber, Default Value"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903571 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:59:25 +00:00
Jacques Le Roux 0eb5a20261 A patch from Sascha Rodekamp "Extend getPropertyNumber, Default Value" (https://issues.apache.org/jira/browse/OFBIZ-3425) - OFBIZ-3425
Adds a method to have a default value to getPropertyNumber methods, can't hurt and maybe useful in some cases.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 12:30:02 +00:00
Adrian Crum 2bef93bf64 ComparableRange test improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902525 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 03:18:52 +00:00
Adrian Crum 389e4e4431 Refactored DateRange.java:
1. Extends new class ComparableRange.
2. downcastTimestamp protected method renamed to timestampToDate and made static.
3. Misc code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902512 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:04:22 +00:00
Adrian Crum 883fd96835 Small JavaDoc fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902510 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:01:08 +00:00
Adrian Crum 4051b7a1eb Unit test for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:19:47 +00:00
Adrian Crum a31caf2059 Sanity check on ComparableRange - make sure the constructor arguments are the same class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902345 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:00:53 +00:00
Adrian Crum 3e3daa73b2 Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902344 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:52:34 +00:00
Adrian Crum 5a80577ec9 Created a Range interface, and an implementation for all Comparable classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902342 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:39:30 +00:00
Adrian Crum a6bf032741 Small improvement to ClobToString converter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902341 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:38:09 +00:00
Scott Gray aa3f01ade4 Removed deprecated method UtilXml.readXmlDocument(InputStream), concludes org.ofbiz.base deprecation cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902230 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:38 +00:00
Scott Gray ec93506d54 Removed deprecated class UtilParse.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902229 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:32 +00:00
Scott Gray 8e276aba74 Removed deprecated method StringUtil.htmlSpecialChars(String, boolean, boolean, boolean), there was an undeprecated overloaded method (StringUtil.htmlSpecialChars(String)) calling this method so I've moved the implementation to it and marked it as deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902228 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:27 +00:00
Scott Gray 21b953e7d8 Removed deprecated class OutputStreamByteCount.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902227 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:22 +00:00
Scott Gray 812ec2585e Added missing deprecated annotations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902225 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:10:20 +00:00
Anil Patel 722c4c33f0 Now checking for Boolean type in request attributes and adding it to returned Json attributes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901689 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 13:03:18 +00:00
Adrian Crum e80cf29e02 Simplified the number converters. Eliminated an unnecessary abstract class, made use of Java's auto-boxing. Non-localized Number to String conversions use the the toString() method - so the result is what you would expect.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901058 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 04:36:42 +00:00
Scott Gray b8abee939f Add converters to/from ByteBuffer and byte[]
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899824 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:43:42 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adrian Crum a91a37e6af A less aggressive UtilProperties.java update, suggested by Adam Heath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898648 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 04:41:03 +00:00