From: JIRA (f. E. C. S. ) <ji...@pc...> - 2011-06-19 14:30:05
|
[ http://jira.pcgen.org/browse/DOCS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12441#action_12441 ] Eric C. Smith commented on DOCS-107: ------------------------------------ I've added some exposition on the three qualifiers. The note on negation should be adequit though. I alread state that !PC is valid. For the rest of the clarification, I believe it is better to have specific examples under each CHOOSE tag and there is already a note to look under the specific tag docs for such. > Expand Explanation of Global Qualifiers - What do they do? > ---------------------------------------------------------- > > Key: DOCS-107 > URL: http://jira.pcgen.org/browse/DOCS-107 > Project: Documentation > Issue Type: New Feature > Components: Data/LST > Reporter: Andrew Maitland > Assignee: Eric C. Smith > > Adding this descriptive text to the Gobal Qualifier page would be useful > Global Qualifiers work for any CDOMObject which can be qualified (some items like PCStat and PCAlignment cannot be qualified) > For purposes of the examples below, this assumes that PCTemplate objects are being used. > ==Qualifiers== > =ANY= > This means any item in the brackets should be returned (this is implied, so that CHOOSE:TEMPLATE|Foo,TYPE=Bar is equivalent to CHOOSE:TEMPLATE|ANY[Foo,TYPE=Bar] > =PC= > This means any item which has already been taken by the PlayerCharacter. > =QUALIFIED= > This means any item for which the PC qualifies (meets the PRExxx on the Template or has QUALIFY:TEMPLATE|x for that Template) > Syntax > Note that for a QUALIFIER, ALL is the implied PRIMITIVE, so: > CHOOSE:TEMPLATE|PC[ALL] > is equivalent to > CHOOSE:TEMPLATE|PC > ==Negation== > Any qualifier may be negated. Therefore, both PC and !PC are valid qualifiers. > CHOOSE:TEMPLATE|PC[TYPE=Foo] > would return any Template already possessed by the PlayerCharacter which had TYPE: of Foo > CHOOSE:TEMPLATE|!PC[TYPE=Foo] > would return any Template which is not: > - possessed by the PC > and > - TYPE=Foo -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |