diff options
author | Josiah Gaskin <josiahgaskin@google.com> | 2014-03-21 16:14:03 -0700 |
---|---|---|
committer | Josiah Gaskin <josiahgaskin@google.com> | 2014-03-24 16:49:35 -0700 |
commit | c95d0c077bd5b5ad8e1a478bbe74cbeaca077d21 (patch) | |
tree | 186676f2152f96a2aba647ab0d5daab7c81404b5 /android/testData/templates | |
parent | 4e6ead08506a3ebc65a8b6636b56a6a6b0730838 (diff) | |
download | idea-c95d0c077bd5b5ad8e1a478bbe74cbeaca077d21.tar.gz |
Add typed globals to template parsing
The parsing system for freemarker templates now allows typed globals
with type memberof {'integer', 'boolean', 'string'}. If no type is
specified, it defaults to string.
Change-Id: I7aaa06c847d81dff34524baabb8fb33a2a848bda
Diffstat (limited to 'android/testData/templates')
-rw-r--r-- | android/testData/templates/globals.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/android/testData/templates/globals.xml b/android/testData/templates/globals.xml new file mode 100644 index 00000000000..98269e72977 --- /dev/null +++ b/android/testData/templates/globals.xml @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<!-- +~ Copyright (C) 2014 The Android Open Source Project +~ +~ Licensed under the Apache License, Version 2.0 (the "License"); +~ you may not use this file except in compliance with the License. +~ You may obtain a copy of the License at +~ +~ http://www.apache.org/licenses/LICENSE-2.0 +~ +~ Unless required by applicable law or agreed to in writing, software +~ distributed under the License is distributed on an "AS IS" BASIS, +~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +~ See the License for the specific language governing permissions and +~ limitations under the License. +--> +<globals> + <global id="thisIsAnImplicitString" value="I am a string" /> + <global id="thisIsAPinnochioString" type="string" value="I'm a real string!" /> + <global id="thisIsAStringByDefault" type="blahblahblah" value="I get interpreted as a string" /> + <global id="thisIsAnInteger" type="integer" value="128" /> + <global id="thisIsAMalformedInteger" type="integer" value="123abc" /> + <global id="thisIsATrueBoolean" type="boolean" value="true" /> + <global id="thisIsAFalseBoolean" type="boolean" value="false" /> +</globals> |