Revision: 7963
          http://svn.sourceforge.net/gate/?rev=7963&view=rev
Author:   ian_roberts
Date:     2007-01-08 07:44:28 -0800 (Mon, 08 Jan 2007)

Log Message:
-----------
Added default value handling for FeatureMap-valued parameters.  You can now use
a creole.xml definition like:

<PARAMETER NAME="constraints" DEFAULT="kind=word;orth=upperInitial"
  COMMENT="Constraints on the annotations">gate.FeatureMap</PARAMETER>

which behaves as you would expect - the DEFAULT is treated as a list of 
name=value pairs separated by semicolons.  Everything up to the first equal 
sign is taken as the feature name, everything after is the value so

DEFAULT="queryString=id=xyz&amp;type=15;method=POST"

defines *two* features, one named "queryString" with value "id=xyz&type=15" and
another named "method" with value "POST".  Note that the ; of &amp; is part
of the entity reference and is comsumed by the XML parser, so does not act as a
separator.

Modified Paths:
--------------
    gate/trunk/src/gate/creole/Parameter.java


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to