PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/ishafoundation/archives/transcript/db/XQueries.as

http://transcriptstudio4isha.googlecode.com/
ActionScript | 22 lines | 17 code | 5 blank | 0 comment | 0 complexity | 344a8559a02841e1fb00d2147dff3068 MD5 | raw file
 1package org.ishafoundation.archives.transcript.db
 2{
 3	public class XQueries
 4	{
 5		public static const ALL_EVENTS:String = "(: all event ids :)\nfor $event in /event\nreturn $event";
 6		public static const ALL_EVENT_IDS:String = "(: all events :)\nfor $event in /event return <eventId>{string($event/@id)}</eventId>";
 7		public static const EVENT_IDS_WITH_PREFIX:String = "(: event ids starting with :)\nfor $event in /event\nlet $id := $event/@id\nwhere starts-with($id, $arg0)\nreturn <eventId>{string($event/@id)}</eventId>";
 8		public static const EVENTS_WITH_PREFIX:String = "(: events with id starting with :)\nfor $event in /event\nlet $id := $event/@id\nwhere starts-with($id, $arg0)\nreturn $event";
 9		
10		public static const SESSION:String = "(: document :)\nfor $session in /session\nlet $id := $session/@id\nwhere $id = $arg0\nreturn $session";		
11
12		public static const ALL_OUTLINES:String = "(: all outlines :)\nfor $outline in /session/transcript//superSegment\nreturn $outline";
13		public static const OUTLINES_TAGGED_WITH:String = "(: outlines tagged with :)\nfor $outline in /session/transcript//superSegment\nreturn $outline";
14
15		public static const ALL_XQUERIES:Array = [ALL_EVENTS, ALL_EVENT_IDS, EVENT_IDS_WITH_PREFIX, EVENTS_WITH_PREFIX, SESSION, ALL_OUTLINES];
16		
17		public function XQueries()
18		{
19		}
20
21	}
22}