Document: Add getLayoutItemByPath().
authorMurray Cumming <murrayc@murrayc.com>
Thu, 15 Nov 2012 21:46:49 +0000 (22:46 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 16 Nov 2012 19:50:04 +0000 (20:50 +0100)
commitbdd10449d5479b51df59e8359828738858eff7bc
treef70b9924de11127cb96d4cd41902f47327f1ee48
parentb931fd6d705153627c0a922fd5b6d1c29032367f
Document: Add getLayoutItemByPath().

        * src/main/java/org/glom/web/server/Utils.java:
Add buildLayoutPath() and parseLayoutPath().
        * src/test/java/org/glom/web/server/LayoutPathTest.java: Test that these
utility methods work.
        * src/main/java/org/glom/web/server/libglom/Document.java:
Add Add getLayoutItemByPath().
* src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java: Test
that it works.

This will be useful in subsequent commits.
ChangeLog
src/main/java/org/glom/web/server/Utils.java
src/main/java/org/glom/web/server/libglom/Document.java
src/test/java/org/glom/web/server/LayoutPathTest.java [new file with mode: 0644]
src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java [new file with mode: 0644]