signature:
public class Fixture { /** * Reads the argument list and copies all values in public members
 * with the same name .
 * If these members do not exist , the argument is skipped . You can still
 * read the values using { @ link # getArg ( String , String ) } .
 * @ see # getArg ( String , String ) getArg */
public void copyParamsToFixture ( ) { } }

implementation: for ( final String fieldName : getArgNames ( ) ) { ValueReceiver valueReceiver ; try { valueReceiver = valueReceiverFactory . createReceiver ( this , fieldName ) ; } catch ( NoSuchMethodException | NoSuchFieldException e ) { continue ; } TypeHandler handler = createTypeHandler ( valueReceiver , null ) ; String fieldValueString = getArg ( fieldName , null ) ; try { Object fieldValue = handler . parse ( fieldValueString ) ; valueReceiver . set ( this , fieldValue ) ; } catch ( Exception ignored ) { } }


signature:
public class Fixture { /** * Returns all argument names .
 * @ return a list of all given argument names .
 * @ see # getArg ( String , String ) getArg
 * @ see # copyParamsToFixture ( ) copyParamsToFixture */
protected String [ ] getArgNames ( ) { } }

implementation: if ( args == null ) { return new String [ ] { } ; } return args . keySet ( ) . toArray ( new String [ args . keySet ( ) . size ( ) ] ) ;


signature:
public class Fixture { /** * Replacement of { @ code check } which resolves cross - references
 * before calling the original check method of fit .
 * @ param cell the cell to check
 * @ param valueReceiver TypeAdapter to use
 * @ param currentCellParameter parameter of the current cell */
public void check ( final FitCell cell , ValueReceiver valueReceiver , String currentCellParameter ) { } }

implementation: validator . process ( cell , valueReceiver , currentCellParameter , typeHandlerFactory ) ;


signature:
public class Timer { /** * Schedule periodic task execution .
 * @ param periodicTask periodic task instance ,
 * @ param period requested execution period , milliseconds . */
public synchronized void period ( final PeriodicTask periodicTask , long period ) { } }

implementation: TimerTask task = new PeriodicTaskImpl ( periodicTask ) ; this . tasks . put ( periodicTask , task ) ; this . timer . schedule ( task , 0L , period ) ;


signature:
public class Timer { /** * Schedule timeout task , reseting timeout period if given timeout task is already pending .
 * @ param timeoutTask timeout task instance ,
 * @ param timeout timeout value , milliseconds . */
public synchronized void timeout ( final TimeoutTask timeoutTask , long timeout ) { } }

implementation: TimerTask task = this . tasks . get ( timeoutTask ) ; if ( task != null ) { task . cancel ( ) ; this . tasks . values ( ) . remove ( task ) ; } task = new TimeoutTaskImpl ( timeoutTask ) ; this . tasks . put ( timeoutTask , task ) ; this . timer . schedule ( task , timeout ) ;


signature:
public class Timer { /** * Purge task helper method . If given < code > task < / code > is not scheduled this method does nothing .
 * @ param task pending user defined task . */
private void purgeTask ( Object task ) { } }

implementation: TimerTask timerTask = this . tasks . get ( task ) ; if ( timerTask != null ) { timerTask . cancel ( ) ; this . tasks . values ( ) . remove ( timerTask ) ; }


signature:
public class ViewManagerImpl { /** * Create views meta pool from given managed view configuration object . Configuration object is described on class
 * description .
 * @ param config view manager configuration object .
 * @ throws ConfigException if configuration object is not valid .
 * @ throws IOException if views meta pool cannot be created . */
@ Override public void config ( Config config ) throws ConfigException , IOException { } }

implementation:
for ( Config repositorySection : config . findChildren ( "repository" ) ) { // view manager configuration section is named < views >
// a < views > configuration section has one or many < repository > child sections
// scan every repository files accordingly files pattern and add meta views to views meta pool
// load repository view implementation class and perform insanity checks
String className = repositorySection . getAttribute ( "class" , DEF_IMPLEMENTATION ) ; Class < ? > implementation = Classes . forOptionalName ( className ) ; if ( implementation == null ) { throw new ConfigException ( "Unable to load view implementation |%s|." , className ) ; } if ( ! Types . isKindOf ( implementation , View . class ) ) { throw new ConfigException ( "View implementation |%s| is not of proper type." , className ) ; } if ( ! Classes . isInstantiable ( implementation ) ) { throw new ConfigException ( "View implementation |%s| is not instantiable. Ensure is not abstract or interface and have default constructor." , implementation ) ; } @ SuppressWarnings ( "unchecked" ) Class < ? extends View > viewImplementation = ( Class < ? extends View > ) implementation ; // load repository path and files pattern and create I18N repository instance
String repositoryPath = repositorySection . getAttribute ( "path" ) ; if ( repositoryPath == null ) { throw new ConfigException ( "Invalid views repository configuration. Missing <path> attribute." ) ; } String filesPattern = repositorySection . getAttribute ( "files-pattern" ) ; if ( filesPattern == null ) { throw new ConfigException ( "Invalid views repository configuration. Missing <files-pattern> attribute." ) ; } ConfigBuilder builder = new I18nRepository . ConfigBuilder ( repositoryPath , filesPattern ) ; I18nRepository repository = new I18nRepository ( builder . build ( ) ) ; if ( viewsMetaPool == null ) { // uses first repository to initialize i18n pool
// limitation for this solution is that all repositories should be the kind : locale sensitive or not
viewsMetaPool = repository . getPoolInstance ( ) ; } Properties properties = repositorySection . getProperties ( ) ; // traverses all files from I18N repository instance and register view meta instance
// builder is used by view meta to load the document template
for ( I18nFile template : repository ) { ViewMeta meta = new ViewMeta ( template . getFile ( ) , viewImplementation , properties ) ; if ( viewsMetaPool . put ( meta . getName ( ) , meta , template . getLocale ( ) ) ) { log . warn ( "Override view |%s|" , meta ) ; } else { log . debug ( "Register view |%s|" , meta ) ; } } }


signature:
public class ViewManagerImpl { /** * Create view instance based on view meta data identified by name and request locale . View instance is created from view
 * implementation class - { @ link ViewMeta # getImplementation ( ) } .
 * @ param viewName application unique view name .
 * @ return newly create view instance .
 * @ throws BugError if given view name does not designate an existing view . */
@ Override public View getView ( String viewName ) { } }

implementation: RequestContext context = Factory . getInstance ( RequestContext . class ) ; ViewMeta meta = viewsMetaPool . get ( viewName , context . getLocale ( ) ) ; if ( meta == null ) { throw new BugError ( "View |%s| not found. View name may be misspelled, forgot to add template file or template name doesn't match views files pattern." , viewName ) ; } AbstractView view = ( AbstractView ) Classes . newInstance ( meta . getImplementation ( ) ) ; view . setMeta ( meta ) ; return view ;


signature:
public class RecursiveFileSelector { /** * Returns < code > true < / code > if the iteration has more elements .
 * ( In other words , returns < code > true < / code > if < code > next < / code > would
 * return an element rather than throwing an exception . )
 * @ return true if the iterator has more elements . */
@ Override public final boolean hasNext ( ) { } }

implementation: if ( files == null ) { return false ; } else if ( fileIndex < files . length ) { return true ; } else { return cacheNext ( ) ; }


signature:
public class RecursiveFileSelector { /** * Returns the next matching file .
 * @ return the next element in the iteration .
 * @ throws NoSuchElementException iteration has no more elements */
@ Override public final File next ( ) { } }

implementation: if ( files == null || fileIndex >= files . length ) { if ( ! cacheNext ( ) ) { throw new NoSuchElementException ( ) ; } } return files [ fileIndex ++ ] ;


signature:
public class AbstractFileReaderFixture { /** * Reads the given parameters and initializes the values of
 * { @ link # getEncoding ( ) } and { @ link # getFile ( ) } .
 * @ throws java . lang . Exception General Exception , e . g . the file cannot be opened . */
@ Override public void setUp ( ) throws Exception { } }

implementation: super . setUp ( ) ; FileFixtureHelper helper = DependencyManager . getOrCreate ( FileFixtureHelper . class ) ; if ( encoding == null ) { encoding = helper . getEncoding ( ) ; } String fileName = getArg ( "file" ) ; if ( fileName == null ) { File provider = helper . getDirectory ( ) ; String dir = getArg ( "dir" ) ; if ( dir != null ) { provider = new File ( dir ) ; } if ( provider == null ) { throw new RuntimeException ( "No directory selected" ) ; } String pattern = helper . getPattern ( ) ; pattern = getArg ( "pattern" , pattern ) ; FileSelector fs = new FileSelector ( provider , pattern ) ; file = wrapper . wrap ( fs . getFirstFile ( ) ) ; } else { file = wrapper . wrap ( new File ( fileName ) . getAbsoluteFile ( ) ) ; }


signature:
public class FixedLengthFileRecordFixture { /** * Parses the first table row and generates an { @ code int } array
 * which contains the length of each record field .
 * @ param row row to process
 * @ return length of each field */
public final int [ ] extractWidth ( FitRow row ) { } }

implementation: int [ ] width = new int [ row . size ( ) ] ; int i = 0 ; for ( FitCell cell : row . cells ( ) ) { try { String value = validator . preProcess ( cell . getFitValue ( ) ) ; TypeHandler handler = typeHandlerFactory . getHandler ( Integer . class , null ) ; width [ i ++ ] = ( Integer ) handler . parse ( value ) ; } catch ( Exception e ) { cell . exception ( e ) ; return null ; } } return width ;


signature:
public class SetupFixture { /** * Sets the database username to { @ code userName } .
 * The username can be received using { @ link SetupHelper # getUser ( ) } .
 * @ param userName the database username */
public void user ( final String userName ) { } }

implementation: SetupHelper helper = DependencyManager . getOrCreate ( SetupHelper . class ) ; helper . setUser ( userName ) ;


signature:
public class SetupFixture { /** * Sets the database password to { @ code password } .
 * The password can be received using { @ link SetupHelper # getPassword ( ) } .
 * @ param password the database password */
public void password ( final String password ) { } }

implementation: SetupHelper helper = DependencyManager . getOrCreate ( SetupHelper . class ) ; helper . setPassword ( password ) ;


signature:
public class SetupFixture { /** * Sets the database connection string to { @ code uri } .
 * The connection string can be received using
 * { @ link SetupHelper # getConnectionString ( ) } .
 * @ param uri the database connectoin string */
public void connectionString ( final String uri ) { } }

implementation: SetupHelper helper = DependencyManager . getOrCreate ( SetupHelper . class ) ; helper . setConnectionString ( uri ) ;


signature:
public class Captcha { /** * Configure Simple CAPTCHA service provider . See class description for configuration object properties .
 * Note that images repository should contain only images related to CAPTCHA ; sub - directories are not scanned , only direct
 * child files .
 * @ param config configuration section from application descriptor . */
@ Override public void config ( Config config ) throws ConfigException { } }

implementation: imagesRepositoryDir = config . getProperty ( "captcha.repository.path" , File . class ) ; if ( imagesRepositoryDir == null ) { throw new ConfigException ( "Missing <captcha.repository.path> property from CAPTCHA configuration." ) ; } challengeSetSize = config . getProperty ( "captcha.set.size" , int . class , 6 ) ; if ( ! imagesRepositoryDir . exists ( ) ) { throw new ConfigException ( "CAPTCHA images repository |%s| does not exist." , imagesRepositoryDir ) ; } if ( ! imagesRepositoryDir . isDirectory ( ) ) { throw new ConfigException ( "CAPTCHA images repository |%s| is not a directory." , imagesRepositoryDir ) ; } if ( ! imagesRepositoryDir . isAbsolute ( ) ) { throw new ConfigException ( "CAPTCHA images repository |%s| is not absolute path." , imagesRepositoryDir ) ; } int imagesCount = imagesRepositoryDir . list ( ) . length ; if ( imagesCount == 0 ) { throw new ConfigException ( "CAPTCHA images repository |%s| is empty." , imagesRepositoryDir ) ; } if ( imagesCount <= challengeSetSize ) { throw new ConfigException ( "Challenge set size is larger that avaliable images count from CAPTCHA repository." ) ; }


signature:
public class Captcha { /** * Create a new challenge and store it on HTTP session . If HTTP session does not exist , create it . This challenge is used by
 * client to update user interface accordingly . It is called on initial form rendering and every time user choose to load
 * another challenge if current one cannot be solved .
 * Client is free to display multiple Simple CAPTCHA instances but all instances should have distinct index , generated in
 * sequence , starting from zero .
 * @ param captchaIndex CAPTCHA instance index ,
 * @ return newly created CAPTCHA challenge .
 * @ throws BugError if this CAPTCHA manager is not properly initialized . */
@ Remote public Challenge getChallenge ( int captchaIndex ) { } }

implementation: if ( imagesRepositoryDir == null ) { log . debug ( "Simple CAPTCHA not properly initialized. Missing <captcha> section from application descriptor:\r\n" + "\t<captcha>\r\n" + "\t\t<property name=\"captcha.repository.path\" value=\"/path/to/captcha/images\" />\r\n" + "\t\t<property name=\"captcha.set.size\" value=\"5\" />\r\n" + "\t</captcha>" ) ; throw new BugError ( "Missing CAPTCHA images repository. Most probably <captcha> section is missing from application descriptor." ) ; } Challenge challenge = new Challenge ( imagesRepositoryDir , challengeSetSize ) ; getChallenges ( ) . put ( captchaIndex , challenge ) ; return challenge ;


signature:
public class Captcha { /** * Verify challenge response . If response is not correct returns a new challenge used by client to update user interface . It
 * is highly recommended to refresh challenge on wrong answer to prevent response guessing .
 * Instance index should be the same provided to { @ link # getChallenge ( int ) } . This is critical and client should consider
 * this constrain . Anyway , using wrong CAPTCHA instance index is not a security breach ; it always consider response as
 * invalid .
 * @ param captchaIndex CAPTCHA instance index ,
 * @ param challengeResponse challenge response from client .
 * @ return null if response is correct or a new challenge .
 * @ throws IllegalArgumentException if given challenge response is null or empty .
 * @ throws IllegalStateException if there is no challenge on session . */
@ Remote public Challenge verifyResponse ( int captchaIndex , String challengeResponse ) throws IllegalArgumentException , IllegalStateException { } }

implementation: Params . notNullOrEmpty ( challengeResponse , "Challenge response" ) ; Challenge challenge = getChallenges ( ) . get ( captchaIndex ) ; if ( challenge == null ) { throw new IllegalStateException ( "Invalid challenge on session." ) ; } return challenge . verifyResponse ( challengeResponse ) ? null : getChallenge ( captchaIndex ) ;


signature:
public class Captcha { /** * Get the image identified by given token so that client is able to display it . In order to protect against recording
 * attack , a challenge image is identified by a token that is valid only once .
 * If given token does not identify a valid challenge image this method throws { @ link NoSuchResourceException } and container
 * responds with 404 Not Found .
 * @ param token challenge image identifier .
 * @ return requested challenge image .
 * @ throws IllegalArgumentException if < code > token < / code > argument is null or empty .
 * @ throws NoSuchResourceException if there is no challenge on session or token does not identify a challenge image . */
@ Remote @ RequestPath ( "image" ) public Resource getImage ( String token ) throws IllegalArgumentException , NoSuchResourceException { } }

implementation: Params . notNullOrEmpty ( token , "Image token" ) ; for ( Challenge challenge : getChallenges ( ) . values ( ) ) { File image = challenge . getImage ( token ) ; if ( image != null ) { return new FileResource ( image ) ; } } throw new NoSuchResourceException ( ) ;


signature:
public class Captcha { /** * Get challenge instances storage bound to current HTTP request . Challenges storage is kept on HTTP session . It is legal to
 * have multiple Simple CAPTCHA instances on a single page but client should use zero based numeric index to identify
 * instances .
 * This method has side effects : it creates HTTP session if is not already created .
 * @ return challenge instances storage .
 * @ throws IllegalStateException if attempt to create new session after response commit . */
private Map < Integer , Challenge > getChallenges ( ) { } }

implementation:
// here is a circular package dependency that is hard to avoid
// js . servlet package depends on js . http packages and this js . http . captcha package depends on js . servlet
// as a consequence js . http . captcha package cannot be used externally without js . servlet
HttpSession session = context . getInstance ( RequestContext . class ) . getSession ( true ) ; @ SuppressWarnings ( "unchecked" ) Map < Integer , Challenge > challenges = ( Map < Integer , Challenge > ) session . getAttribute ( CHALENGES_KEY ) ; if ( challenges == null ) { challenges = new HashMap < > ( ) ; session . setAttribute ( CHALENGES_KEY , challenges ) ; } return challenges ;


signature:
public class Launcher { /** * Configures the application . */
private static void configureApplication ( ) { } }

implementation:
// Try to load the file .
File file = new File ( "chameria.props" ) ; if ( file . exists ( ) ) { Properties props = new Properties ( ) ; InputStream is = null ; try { is = new FileInputStream ( file ) ; props . load ( is ) ; String n = props . getProperty ( "application.name" ) ; if ( n != null ) { QApplication . setApplicationName ( n ) ; } else { QApplication . setApplicationName ( "akquinet ChameRIA" ) ; } n = props . getProperty ( "application.version" ) ; if ( n != null ) { QApplication . setApplicationVersion ( n ) ; } n = props . getProperty ( "application.icon" ) ; if ( n != null ) { QIcon icon = new QIcon ( n ) ; QApplication . setWindowIcon ( icon ) ; } } catch ( Exception e ) { System . err . println ( "Cannot read the application configuration " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e ) { // Ignored
} } } } QApplication . setOrganizationName ( "akquinet A.G." ) ;


signature:
public class Launcher { /** * Prints Welcome Banner . */
private static void printWelcomeBanner ( ) { } }

implementation: StringBuffer banner = new StringBuffer ( ) ; banner . append ( "\n" ) ; banner . append ( "\t============================\n" ) ; banner . append ( "\t|                          |\n" ) ; banner . append ( "\t|   Welcome to ChameRIA    |\n" ) ; banner . append ( "\t|                          |\n" ) ; banner . append ( "\t============================\n" ) ; banner . append ( "\n" ) ; System . out . println ( banner ) ;


signature:
public class Launcher { /** * Prints Stopped Banner . */
private static void printStoppedBanner ( ) { } }

implementation: System . out . println ( "\n" ) ; System . out . println ( "\t=========================" ) ; System . out . println ( "\t|   ChameRIA  stopped   |" ) ; System . out . println ( "\t=========================" ) ; System . out . println ( "\n" ) ;


signature:
public class Launcher { /** * Creates the Chameleon instance . The instance is not started .
 * @ param args the command line parameters .
 * @ return the Chameleon instance
 * @ throws Exception if the chameleon instance cannot be created correctly . */
public static ChameRIA createChameleon ( String [ ] args ) throws Exception { } }

implementation: boolean debug = isDebugModeEnabled ( args ) ; String core = getCore ( args ) ; String app = getApp ( args ) ; String runtime = getRuntime ( args ) ; String fileinstall = getDeployDirectory ( args ) ; String config = getProps ( args ) ; if ( config == null || ! new File ( config ) . exists ( ) ) { return new ChameRIA ( core , debug , app , runtime , fileinstall , null ) ; } else { return new ChameRIA ( core , debug , app , runtime , fileinstall , config ) ; }


signature:
public class Launcher { /** * Parses the - - deploy parameter .
 * @ param args the parameters .
 * @ return the deploy folder or < code > null < / code > if not found . */
private static String getDeployDirectory ( String [ ] args ) { } }

implementation: for ( int i = 0 ; i < args . length ; i ++ ) { String arg = args [ i ] ; if ( StringUtils . contains ( arg , "--deploy=" ) ) { return arg . substring ( "--deploy=" . length ( ) ) ; } } return null ;


signature:
public class Launcher { /** * Registers a shutdown hook to stop nicely the embedded framework .
 * @ param chameleon the stopped chameleon */
private static void registerShutdownHook ( final ChameRIA chameleon ) { } }

implementation:
Runtime runtime = Runtime . getRuntime ( ) ; Runnable hook = new Runnable ( ) { public void run ( ) { try { if ( chameleon != null ) { chameleon . stop ( ) ; printStoppedBanner ( ) ; } } catch ( BundleException e ) { System . err . println ( "Cannot stop Chameleon correctly : " + e . getMessage ( ) ) ; } catch ( InterruptedException e ) { System . err . println ( "Unexpected Exception : " + e . getMessage ( ) ) ; // nothing to do
} } } ; runtime . addShutdownHook ( new Thread ( hook ) ) ;


signature:
public class Launcher { /** * Parses the - - debug parameter .
 * @ param args the parameters .
 * @ return true if the debug mode is enabled . */
private static boolean isDebugModeEnabled ( String [ ] args ) { } }

implementation: for ( int i = 0 ; i < args . length ; i ++ ) { String arg = args [ i ] ; if ( arg . equalsIgnoreCase ( "--debug" ) ) { return true ; } } return false ;


signature:
public class ActionFixture { /** * Traversal / / / / / */
@ Override protected void doRow ( FitRow row ) throws Exception { } }

implementation: currentCellParameter = FitUtils . extractCellParameter ( row . cells ( ) . get ( 0 ) ) ; this . row = row ; super . doRow ( row ) ;


signature:
public class ActionFixture { /** * Actions / / / / / */
public void start ( ) throws Exception { } }

implementation: actor = Class . forName ( row . cells ( ) . get ( 1 ) . getFitValue ( ) ) . newInstance ( ) ;


signature:
public class ActionFixture { /** * Utility / / / / / */
protected Method method ( int args ) throws NoSuchMethodException { } }

implementation: return method ( FitUtils . camel ( row . cells ( ) . get ( 1 ) . getFitValue ( ) ) , args ) ;


signature:
public class ActionFixture { /** * Waits until a method returns true . The command takes a method name
 * without parameters and a return value of { @ code Boolean } as the first
 * parameter and a timeout in ms as the second parameter . < br >
 * The method is called every { @ code sleepTime } ms , until it returns true or the timeout is
 * exceeded .
 * @ throws ParseException when the cell cannot be parsed .
 * @ throws NoSuchMethodException when the specified method does not exist . */
public void waitFor ( ) throws ParseException , NoSuchMethodException { } }

implementation: Method method = method ( 0 ) ; long maxTime = parse ( Long . class , row . cells ( ) . get ( 2 ) . getFitValue ( ) ) ; long sleepTime = getSleepTime ( ) ; waitForResult . wait ( actor , method , maxTime , sleepTime ) ; writeResultIntoCell ( waitForResult ) ;


signature:
public class ActionFixture { /** * Transforms the selected row into an & quot ; enter & quot ; command and
 * reinterprets it .
 * Example :
 * Row content : { @ code setEncoding | utf - 8 } < br >
 * Code in the fixture :
 * { @ code
 * public void setEncoding ( ) throws Exception {
 * transformAndEnter ( ) ;
 * { @ code
 * public void setEncoding ( String encoding ) {
 * / / do stuff with encoding here
 * @ throws Exception should be propagated to fit . */
protected final void transformAndEnter ( ) throws Exception { } }

implementation: FitCell cell = row . insert ( 0 ) ; cell . setFitValue ( "enter" ) ; Object oldActor = actor ; actor = this ; enter ( ) ; actor = oldActor ; row . remove ( 0 ) ;


signature:
public class ActionView { /** * Triggers the action . */
public void trigger ( ) { } }

implementation: try { onTrigger ( ) ; Notification . show ( getCaption ( ) , "Successful." , Notification . Type . TRAY_NOTIFICATION ) ; } catch ( IOException | IllegalArgumentException | IllegalAccessException | IllegalStateException ex ) { onError ( ex ) ; }


signature:
public class ActionView { /** * Handler for triggering the action .
 * @ throws IOException Network communication failed .
 * @ throws IllegalArgumentException { @ link HttpStatus # SC _ BAD _ REQUEST }
 * @ throws IllegalAccessException { @ link HttpStatus # SC _ UNAUTHORIZED } or
 * { @ link HttpStatus # SC _ FORBIDDEN }
 * @ throws FileNotFoundException { @ link HttpStatus # SC _ NOT _ FOUND } or
 * { @ link HttpStatus # SC _ GONE }
 * @ throws IllegalStateException { @ link HttpStatus # SC _ CONFLICT }
 * @ throws RuntimeException Other non - success status code . */
protected void onTrigger ( ) throws IOException , IllegalArgumentException , IllegalAccessException , FileNotFoundException , IllegalStateException { } }

implementation: endpoint . trigger ( ) ; eventBus . post ( new TriggerEvent ( endpoint ) ) ;


signature:
public class AbstractLoggingEventMatcher { /** * Gets the first matching event which matches { @ link # matches ( LoggingEvent ) }
 * and the given parameters .
 * @ param events log entries to process
 * @ param parameters filter parameters
 * @ return first matching log entry or { @ code null } otherwise */
public final LoggingEvent getFirstMatchingEvent ( final LoggingEvent [ ] events , final Map < String , String > parameters ) { } }

implementation: for ( LoggingEvent event : events ) { if ( matchesParameters ( event , parameters ) && matches ( event ) ) { return event ; } } return null ;


signature:
public class FitParseResult { /** * Replaces a row with one or more results .
 * @ param row the row to replace */
public void insertAndReplace ( final FitRow row ) { } }

implementation: if ( results . isEmpty ( ) ) { return ; } int index = row . getIndex ( ) ; FitTable table = row . getTable ( ) ; table . remove ( index ) ; addRows ( table , index ) ;


signature:
public class FitParseResult { /** * Gets the sum of all results .
 * @ return sum of all saved results */
public Counts getCounts ( ) { } }

implementation: Counts counts = new Counts ( ) ; for ( FileCount fileCount : results ) { counts . tally ( fileCount . getCounts ( ) ) ; } return counts ;


signature:
public class SetupFixture { /** * Sets the locale value to { @ code locale } .
 * @ param locale name of the local to use
 * @ see FitDateHelper # setLocale ( String ) SetupHelper . setLocale ( String )
 * @ see FitDateHelper # getLocale ( ) SetupHelper . getLocale ( ) */
public void locale ( final String locale ) { } }

implementation: FitDateHelper helper = DependencyManager . getOrCreate ( FitDateHelper . class ) ; helper . setLocale ( locale ) ;


signature:
public class SetupFixture { /** * Sets the format value to { @ code format } .
 * @ param format format string which is parsable by { @ link SimpleDateFormat }
 * @ see FitDateHelper # setFormat ( String ) SetupHelper . setFormat ( String )
 * @ see FitDateHelper # getFormat ( ) SetupHelper . getFormat ( ) */
public void format ( final String format ) { } }

implementation: FitDateHelper helper = DependencyManager . getOrCreate ( FitDateHelper . class ) ; helper . setFormat ( format ) ;


signature:
public class Summary { /** * setter for score - sets The score associated with the answer .
 * @ generated
 * @ param v value to set into the feature */
public void setScore ( double v ) { } }

implementation: if ( Summary_Type . featOkTst && ( ( Summary_Type ) jcasType ) . casFeat_score == null ) jcasType . jcas . throwFeatMissing ( "score" , "edu.cmu.lti.oaqa.type.answer.Summary" ) ; jcasType . ll_cas . ll_setDoubleValue ( addr , ( ( Summary_Type ) jcasType ) . casFeatCode_score , v ) ;


signature:
public class Summary { /** * getter for variants - gets List of alternative answer summaries .
 * @ generated
 * @ return value of the feature */
public StringList getVariants ( ) { } }

implementation: if ( Summary_Type . featOkTst && ( ( Summary_Type ) jcasType ) . casFeat_variants == null ) jcasType . jcas . throwFeatMissing ( "variants" , "edu.cmu.lti.oaqa.type.answer.Summary" ) ; return ( StringList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Summary_Type ) jcasType ) . casFeatCode_variants ) ) ) ;


signature:
public class Summary { /** * setter for variants - sets List of alternative answer summaries .
 * @ generated
 * @ param v value to set into the feature */
public void setVariants ( StringList v ) { } }

implementation: if ( Summary_Type . featOkTst && ( ( Summary_Type ) jcasType ) . casFeat_variants == null ) jcasType . jcas . throwFeatMissing ( "variants" , "edu.cmu.lti.oaqa.type.answer.Summary" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Summary_Type ) jcasType ) . casFeatCode_variants , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Question { /** * getter for questionType - gets The class of the question , determined by either an automatic question classification process or human judgment .
 * @ generated
 * @ return value of the feature */
public String getQuestionType ( ) { } }

implementation: if ( Question_Type . featOkTst && ( ( Question_Type ) jcasType ) . casFeat_questionType == null ) jcasType . jcas . throwFeatMissing ( "questionType" , "edu.cmu.lti.oaqa.type.input.Question" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Question_Type ) jcasType ) . casFeatCode_questionType ) ;


signature:
public class Question { /** * setter for questionType - sets The class of the question , determined by either an automatic question classification process or human judgment .
 * @ generated
 * @ param v value to set into the feature */
public void setQuestionType ( String v ) { } }

implementation: if ( Question_Type . featOkTst && ( ( Question_Type ) jcasType ) . casFeat_questionType == null ) jcasType . jcas . throwFeatMissing ( "questionType" , "edu.cmu.lti.oaqa.type.input.Question" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Question_Type ) jcasType ) . casFeatCode_questionType , v ) ;


signature: public class PoJoDDIRessourceFactory { public void registered ( ResteasyProviderFactory factory ) { } }

implementation: System . out . println ( "registered - factory = " + factory ) ; ResourceConstructor constructor = this . resourceClass . getConstructor ( ) ; if ( constructor == null ) { final Class < ? > clazz = this . resourceClass . getClazz ( ) ; final Class < ? > aClass = DI . getSubTypesWithoutInterfacesAndGeneratedOf ( clazz ) . stream ( ) . findFirst ( ) . get ( ) ; constructor = ResourceBuilder . constructor ( aClass ) ; } if ( constructor == null ) { throw new RuntimeException ( Messages . MESSAGES . unableToFindPublicConstructorForClass ( this . scannableClass . getName ( ) ) ) ; } else { this . constructorInjector = factory . getInjectorFactory ( ) . createConstructor ( constructor , factory ) ; this . propertyInjector = factory . getInjectorFactory ( ) . createPropertyInjector ( this . resourceClass , factory ) ; }


signature:
public class Focus { /** * getter for token - gets The corresponding token for the focus .
 * @ generated
 * @ return value of the feature */
public Token getToken ( ) { } }

implementation: if ( Focus_Type . featOkTst && ( ( Focus_Type ) jcasType ) . casFeat_token == null ) jcasType . jcas . throwFeatMissing ( "token" , "edu.cmu.lti.oaqa.type.nlp.Focus" ) ; return ( Token ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Focus_Type ) jcasType ) . casFeatCode_token ) ) ) ;


signature:
public class Token { /** * getter for depLabel - gets The dependency label of the token with respect to its head .
 * @ generated
 * @ return value of the feature */
public String getDepLabel ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_depLabel == null ) jcasType . jcas . throwFeatMissing ( "depLabel" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_depLabel ) ;


signature:
public class Token { /** * setter for depLabel - sets The dependency label of the token with respect to its head .
 * @ generated
 * @ param v value to set into the feature */
public void setDepLabel ( String v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_depLabel == null ) jcasType . jcas . throwFeatMissing ( "depLabel" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_depLabel , v ) ;


signature:
public class Token { /** * getter for semanticType - gets A semantic type , typically the name of an Entity Annotation type .
 * @ generated
 * @ return value of the feature */
public String getSemanticType ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_semanticType == null ) jcasType . jcas . throwFeatMissing ( "semanticType" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_semanticType ) ;


signature:
public class Token { /** * setter for semanticType - sets A semantic type , typically the name of an Entity Annotation type .
 * @ generated
 * @ param v value to set into the feature */
public void setSemanticType ( String v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_semanticType == null ) jcasType . jcas . throwFeatMissing ( "semanticType" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_semanticType , v ) ;


signature:
public class Token { /** * getter for partOfSpeech - gets Coarse - grained part of speech . - - - Example : noun , verb , adj , cord
 * @ generated
 * @ return value of the feature */
public String getPartOfSpeech ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_partOfSpeech == null ) jcasType . jcas . throwFeatMissing ( "partOfSpeech" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_partOfSpeech ) ;


signature:
public class Token { /** * setter for partOfSpeech - sets Coarse - grained part of speech . - - - Example : noun , verb , adj , cord
 * @ generated
 * @ param v value to set into the feature */
public void setPartOfSpeech ( String v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_partOfSpeech == null ) jcasType . jcas . throwFeatMissing ( "partOfSpeech" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_partOfSpeech , v ) ;


signature:
public class Token { /** * getter for lemmaForm - gets A canonical / lemmatized form of the covered text .
 * @ generated
 * @ return value of the feature */
public String getLemmaForm ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_lemmaForm == null ) jcasType . jcas . throwFeatMissing ( "lemmaForm" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_lemmaForm ) ;


signature:
public class Token { /** * setter for lemmaForm - sets A canonical / lemmatized form of the covered text .
 * @ generated
 * @ param v value to set into the feature */
public void setLemmaForm ( String v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_lemmaForm == null ) jcasType . jcas . throwFeatMissing ( "lemmaForm" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_lemmaForm , v ) ;


signature:
public class Token { /** * getter for isMainReference - gets If true , then this is the main reference to the first argument . Modifiers and anaphoric references do not have isMainReference set . - - - Example : " A dark blue [ hat ] "
 * @ generated
 * @ return value of the feature */
public boolean getIsMainReference ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_isMainReference == null ) jcasType . jcas . throwFeatMissing ( "isMainReference" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_isMainReference ) ;


signature:
public class Token { /** * setter for isMainReference - sets If true , then this is the main reference to the first argument . Modifiers and anaphoric references do not have isMainReference set . - - - Example : " A dark blue [ hat ] "
 * @ generated
 * @ param v value to set into the feature */
public void setIsMainReference ( boolean v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_isMainReference == null ) jcasType . jcas . throwFeatMissing ( "isMainReference" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_isMainReference , v ) ;


signature:
public class Token { /** * getter for isVariable - gets True iff the token expresses some unknown entity , typically the focus of a question : - - - Example : " [ Who ] shot JR ? " , " What [ city ] was JR born in ? "
 * @ generated
 * @ return value of the feature */
public boolean getIsVariable ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_isVariable == null ) jcasType . jcas . throwFeatMissing ( "isVariable" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_isVariable ) ;


signature:
public class Token { /** * setter for isVariable - sets True iff the token expresses some unknown entity , typically the focus of a question : - - - Example : " [ Who ] shot JR ? " , " What [ city ] was JR born in ? "
 * @ generated
 * @ param v value to set into the feature */
public void setIsVariable ( boolean v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_isVariable == null ) jcasType . jcas . throwFeatMissing ( "isVariable" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_isVariable , v ) ;


signature:
public class Token { /** * getter for determiner - gets The determiner attached to the node , if any - - - Example : [ the ] book
 * @ generated
 * @ return value of the feature */
public String getDeterminer ( ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_determiner == null ) jcasType . jcas . throwFeatMissing ( "determiner" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_determiner ) ;


signature:
public class Token { /** * setter for determiner - sets The determiner attached to the node , if any - - - Example : [ the ] book
 * @ generated
 * @ param v value to set into the feature */
public void setDeterminer ( String v ) { } }

implementation: if ( Token_Type . featOkTst && ( ( Token_Type ) jcasType ) . casFeat_determiner == null ) jcasType . jcas . throwFeatMissing ( "determiner" , "edu.cmu.lti.oaqa.type.nlp.Token" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Token_Type ) jcasType ) . casFeatCode_determiner , v ) ;


signature:
public class Document { /** * getter for sections - gets Content of sections in the document .
 * @ generated
 * @ return value of the feature */
public StringArray getSections ( ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sections == null ) jcasType . jcas . throwFeatMissing ( "sections" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections ) ) ) ;


signature:
public class Document { /** * setter for sections - sets Content of sections in the document .
 * @ generated
 * @ param v value to set into the feature */
public void setSections ( StringArray v ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sections == null ) jcasType . jcas . throwFeatMissing ( "sections" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Document { /** * indexed getter for sections - gets an indexed value - Content of sections in the document .
 * @ generated
 * @ param i index in the array to get
 * @ return value of the element at index i */
public String getSections ( int i ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sections == null ) jcasType . jcas . throwFeatMissing ( "sections" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections ) , i ) ;


signature:
public class Document { /** * indexed setter for sections - sets an indexed value - Content of sections in the document .
 * @ generated
 * @ param i index in the array to set
 * @ param v value to set into the array */
public void setSections ( int i , String v ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sections == null ) jcasType . jcas . throwFeatMissing ( "sections" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sections ) , i , v ) ;


signature:
public class Document { /** * getter for sectionLabels - gets Section labels in the document , e . g . sections . 0 , sections1 , etc .
 * @ generated
 * @ return value of the feature */
public StringArray getSectionLabels ( ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sectionLabels == null ) jcasType . jcas . throwFeatMissing ( "sectionLabels" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels ) ) ) ;


signature:
public class Document { /** * setter for sectionLabels - sets Section labels in the document , e . g . sections . 0 , sections1 , etc .
 * @ generated
 * @ param v value to set into the feature */
public void setSectionLabels ( StringArray v ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sectionLabels == null ) jcasType . jcas . throwFeatMissing ( "sectionLabels" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Document { /** * indexed getter for sectionLabels - gets an indexed value - Section labels in the document , e . g . sections . 0 , sections1 , etc .
 * @ generated
 * @ param i index in the array to get
 * @ return value of the element at index i */
public String getSectionLabels ( int i ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sectionLabels == null ) jcasType . jcas . throwFeatMissing ( "sectionLabels" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels ) , i ) ;


signature:
public class Document { /** * indexed setter for sectionLabels - sets an indexed value - Section labels in the document , e . g . sections . 0 , sections1 , etc .
 * @ generated
 * @ param i index in the array to set
 * @ param v value to set into the array */
public void setSectionLabels ( int i , String v ) { } }

implementation: if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_sectionLabels == null ) jcasType . jcas . throwFeatMissing ( "sectionLabels" , "edu.cmu.lti.oaqa.type.retrieval.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_sectionLabels ) , i , v ) ;


signature:
public class Concept { /** * getter for names - gets All name variants ( preferred / default name , synonyms , lexicial variants , etc ) of the concept .
 * @ generated
 * @ return value of the feature */
public StringList getNames ( ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_names == null ) jcasType . jcas . throwFeatMissing ( "names" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; return ( StringList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_names ) ) ) ;


signature:
public class Concept { /** * getter for uris - gets Array of uris that identify this named entity . There may be more than one uri if this named entity is ambiguous .
 * @ generated
 * @ return value of the feature */
public StringList getUris ( ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_uris == null ) jcasType . jcas . throwFeatMissing ( "uris" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; return ( StringList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_uris ) ) ) ;


signature:
public class Concept { /** * setter for uris - sets Array of uris that identify this named entity . There may be more than one uri if this named entity is ambiguous .
 * @ generated
 * @ param v value to set into the feature */
public void setUris ( StringList v ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_uris == null ) jcasType . jcas . throwFeatMissing ( "uris" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_uris , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Concept { /** * getter for ids - gets A list of IDs ( e . g . UI in UMLS ) associated with this concept .
 * @ generated
 * @ return value of the feature */
public StringList getIds ( ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_ids == null ) jcasType . jcas . throwFeatMissing ( "ids" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; return ( StringList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_ids ) ) ) ;


signature:
public class Concept { /** * setter for ids - sets A list of IDs ( e . g . UI in UMLS ) associated with this concept .
 * @ generated
 * @ param v value to set into the feature */
public void setIds ( StringList v ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_ids == null ) jcasType . jcas . throwFeatMissing ( "ids" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_ids , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Concept { /** * getter for mentions - gets A list of ConceptMentions ( text spans ) that might be surface forms to this concept .
 * @ generated
 * @ return value of the feature */
public FSList getMentions ( ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_mentions == null ) jcasType . jcas . throwFeatMissing ( "mentions" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_mentions ) ) ) ;


signature:
public class Concept { /** * setter for mentions - sets A list of ConceptMentions ( text spans ) that might be surface forms to this concept .
 * @ generated
 * @ param v value to set into the feature */
public void setMentions ( FSList v ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_mentions == null ) jcasType . jcas . throwFeatMissing ( "mentions" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_mentions , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Concept { /** * getter for types - gets A list of concept types that the concept belongs to .
 * @ generated
 * @ return value of the feature */
public FSList getTypes ( ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_types == null ) jcasType . jcas . throwFeatMissing ( "types" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_types ) ) ) ;


signature:
public class Concept { /** * setter for types - sets A list of concept types that the concept belongs to .
 * @ generated
 * @ param v value to set into the feature */
public void setTypes ( FSList v ) { } }

implementation: if ( Concept_Type . featOkTst && ( ( Concept_Type ) jcasType ) . casFeat_types == null ) jcasType . jcas . throwFeatMissing ( "types" , "edu.cmu.lti.oaqa.type.kb.Concept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Concept_Type ) jcasType ) . casFeatCode_types , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class AnswerType { /** * getter for targetType - gets The actual target type annotation .
 * @ generated
 * @ return value of the feature */
public Annotation getTargetType ( ) { } }

implementation: if ( AnswerType_Type . featOkTst && ( ( AnswerType_Type ) jcasType ) . casFeat_targetType == null ) jcasType . jcas . throwFeatMissing ( "targetType" , "edu.cmu.lti.oaqa.type.answer.AnswerType" ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( AnswerType_Type ) jcasType ) . casFeatCode_targetType ) ) ) ;


signature:
public class AnswerType { /** * setter for targetType - sets The actual target type annotation .
 * @ generated
 * @ param v value to set into the feature */
public void setTargetType ( Annotation v ) { } }

implementation: if ( AnswerType_Type . featOkTst && ( ( AnswerType_Type ) jcasType ) . casFeat_targetType == null ) jcasType . jcas . throwFeatMissing ( "targetType" , "edu.cmu.lti.oaqa.type.answer.AnswerType" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( AnswerType_Type ) jcasType ) . casFeatCode_targetType , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class SearchResult { /** * getter for rank - gets Rank of this result in the original hit - list .
 * @ generated
 * @ return value of the feature */
public int getRank ( ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_rank == null ) jcasType . jcas . throwFeatMissing ( "rank" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_rank ) ;


signature:
public class SearchResult { /** * setter for rank - sets Rank of this result in the original hit - list .
 * @ generated
 * @ param v value to set into the feature */
public void setRank ( int v ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_rank == null ) jcasType . jcas . throwFeatMissing ( "rank" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_rank , v ) ;


signature:
public class SearchResult { /** * getter for queryString - gets The query string associated with the hit .
 * @ generated
 * @ return value of the feature */
public String getQueryString ( ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_queryString == null ) jcasType . jcas . throwFeatMissing ( "queryString" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_queryString ) ;


signature:
public class SearchResult { /** * setter for queryString - sets The query string associated with the hit .
 * @ generated
 * @ param v value to set into the feature */
public void setQueryString ( String v ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_queryString == null ) jcasType . jcas . throwFeatMissing ( "queryString" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_queryString , v ) ;


signature:
public class SearchResult { /** * getter for candidateAnswers - gets CandidateAnswerVariants generated from this SearchResult .
 * @ generated
 * @ return value of the feature */
public FSArray getCandidateAnswers ( ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_candidateAnswers == null ) jcasType . jcas . throwFeatMissing ( "candidateAnswers" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers ) ) ) ;


signature:
public class SearchResult { /** * setter for candidateAnswers - sets CandidateAnswerVariants generated from this SearchResult .
 * @ generated
 * @ param v value to set into the feature */
public void setCandidateAnswers ( FSArray v ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_candidateAnswers == null ) jcasType . jcas . throwFeatMissing ( "candidateAnswers" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class SearchResult { /** * indexed getter for candidateAnswers - gets an indexed value - CandidateAnswerVariants generated from this SearchResult .
 * @ generated
 * @ param i index in the array to get
 * @ return value of the element at index i */
public CandidateAnswerVariant getCandidateAnswers ( int i ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_candidateAnswers == null ) jcasType . jcas . throwFeatMissing ( "candidateAnswers" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers ) , i ) ; return ( CandidateAnswerVariant ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers ) , i ) ) ) ;


signature:
public class SearchResult { /** * indexed setter for candidateAnswers - sets an indexed value - CandidateAnswerVariants generated from this SearchResult .
 * @ generated
 * @ param i index in the array to set
 * @ param v value to set into the array */
public void setCandidateAnswers ( int i , CandidateAnswerVariant v ) { } }

implementation: if ( SearchResult_Type . featOkTst && ( ( SearchResult_Type ) jcasType ) . casFeat_candidateAnswers == null ) jcasType . jcas . throwFeatMissing ( "candidateAnswers" , "edu.cmu.lti.oaqa.type.retrieval.SearchResult" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( SearchResult_Type ) jcasType ) . casFeatCode_candidateAnswers ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Search { /** * getter for query - gets The query in the native syntax of the corresponding search engine .
 * @ generated
 * @ return value of the feature */
public String getQuery ( ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_query == null ) jcasType . jcas . throwFeatMissing ( "query" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_query ) ;


signature:
public class Search { /** * setter for query - sets The query in the native syntax of the corresponding search engine .
 * @ generated
 * @ param v value to set into the feature */
public void setQuery ( String v ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_query == null ) jcasType . jcas . throwFeatMissing ( "query" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_query , v ) ;


signature:
public class Search { /** * getter for hitList - gets Hit list of search results , sorted in descreasing order of relevance score .
 * @ generated
 * @ return value of the feature */
public FSArray getHitList ( ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_hitList == null ) jcasType . jcas . throwFeatMissing ( "hitList" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList ) ) ) ;


signature:
public class Search { /** * setter for hitList - sets Hit list of search results , sorted in descreasing order of relevance score .
 * @ generated
 * @ param v value to set into the feature */
public void setHitList ( FSArray v ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_hitList == null ) jcasType . jcas . throwFeatMissing ( "hitList" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Search { /** * indexed getter for hitList - gets an indexed value - Hit list of search results , sorted in descreasing order of relevance score .
 * @ generated
 * @ param i index in the array to get
 * @ return value of the element at index i */
public SearchResult getHitList ( int i ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_hitList == null ) jcasType . jcas . throwFeatMissing ( "hitList" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList ) , i ) ; return ( SearchResult ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList ) , i ) ) ) ;


signature:
public class Search { /** * indexed setter for hitList - sets an indexed value - Hit list of search results , sorted in descreasing order of relevance score .
 * @ generated
 * @ param i index in the array to set
 * @ param v value to set into the array */
public void setHitList ( int i , SearchResult v ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_hitList == null ) jcasType . jcas . throwFeatMissing ( "hitList" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_hitList ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Search { /** * getter for abstractQuery - gets The abstract query from which this actual query was generated .
 * @ generated
 * @ return value of the feature */
public AbstractQuery getAbstractQuery ( ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_abstractQuery == null ) jcasType . jcas . throwFeatMissing ( "abstractQuery" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; return ( AbstractQuery ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_abstractQuery ) ) ) ;


signature:
public class Search { /** * setter for abstractQuery - sets The abstract query from which this actual query was generated .
 * @ generated
 * @ param v value to set into the feature */
public void setAbstractQuery ( AbstractQuery v ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_abstractQuery == null ) jcasType . jcas . throwFeatMissing ( "abstractQuery" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_abstractQuery , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Search { /** * getter for searchId - gets An identifier for this search result . Used to collect hit - list objects that belong to this search result after they ' ve been split out for parallel processing then gathered up again .
 * @ generated
 * @ return value of the feature */
public String getSearchId ( ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_searchId == null ) jcasType . jcas . throwFeatMissing ( "searchId" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_searchId ) ;


signature:
public class Search { /** * setter for searchId - sets An identifier for this search result . Used to collect hit - list objects that belong to this search result after they ' ve been split out for parallel processing then gathered up again .
 * @ generated
 * @ param v value to set into the feature */
public void setSearchId ( String v ) { } }

implementation: if ( Search_Type . featOkTst && ( ( Search_Type ) jcasType ) . casFeat_searchId == null ) jcasType . jcas . throwFeatMissing ( "searchId" , "edu.cmu.lti.oaqa.type.retrieval.Search" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Search_Type ) jcasType ) . casFeatCode_searchId , v ) ;


signature:
public class Passage { /** * setter for docId - sets A unique identifier for the document that conatins this passage .
 * @ generated
 * @ param v value to set into the feature */
public void setDocId ( String v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_docId == null ) jcasType . jcas . throwFeatMissing ( "docId" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_docId , v ) ;


signature:
public class Passage { /** * getter for offsetInBeginSection - gets Character offset of the start of this passage within the section that contains this passage .
 * @ generated
 * @ return value of the feature */
public int getOffsetInBeginSection ( ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_offsetInBeginSection == null ) jcasType . jcas . throwFeatMissing ( "offsetInBeginSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_offsetInBeginSection ) ;


signature:
public class Passage { /** * setter for offsetInBeginSection - sets Character offset of the start of this passage within the section that contains this passage .
 * @ generated
 * @ param v value to set into the feature */
public void setOffsetInBeginSection ( int v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_offsetInBeginSection == null ) jcasType . jcas . throwFeatMissing ( "offsetInBeginSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_offsetInBeginSection , v ) ;


signature:
public class Passage { /** * getter for offsetInEndSection - gets Character offset of the end of this passage within the section that contains this passage .
 * @ generated
 * @ return value of the feature */
public int getOffsetInEndSection ( ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_offsetInEndSection == null ) jcasType . jcas . throwFeatMissing ( "offsetInEndSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_offsetInEndSection ) ;


signature:
public class Passage { /** * setter for offsetInEndSection - sets Character offset of the end of this passage within the section that contains this passage .
 * @ generated
 * @ param v value to set into the feature */
public void setOffsetInEndSection ( int v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_offsetInEndSection == null ) jcasType . jcas . throwFeatMissing ( "offsetInEndSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_offsetInEndSection , v ) ;


signature:
public class Passage { /** * getter for beginSection - gets The start section of this passage within the document that contains this passage .
 * @ generated
 * @ return value of the feature */
public String getBeginSection ( ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_beginSection == null ) jcasType . jcas . throwFeatMissing ( "beginSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_beginSection ) ;


signature:
public class Passage { /** * setter for beginSection - sets The start section of this passage within the document that contains this passage .
 * @ generated
 * @ param v value to set into the feature */
public void setBeginSection ( String v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_beginSection == null ) jcasType . jcas . throwFeatMissing ( "beginSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_beginSection , v ) ;


signature:
public class Passage { /** * getter for endSection - gets The end section of this passage within the document that contains this passage .
 * @ generated
 * @ return value of the feature */
public String getEndSection ( ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_endSection == null ) jcasType . jcas . throwFeatMissing ( "endSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_endSection ) ;


signature:
public class Passage { /** * setter for endSection - sets The end section of this passage within the document that contains this passage .
 * @ generated
 * @ param v value to set into the feature */
public void setEndSection ( String v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_endSection == null ) jcasType . jcas . throwFeatMissing ( "endSection" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_endSection , v ) ;


signature:
public class Passage { /** * getter for aspects - gets Aspects of the gold standard passage .
 * @ generated
 * @ return value of the feature */
public String getAspects ( ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_aspects == null ) jcasType . jcas . throwFeatMissing ( "aspects" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_aspects ) ;


signature:
public class Passage { /** * setter for aspects - sets Aspects of the gold standard passage .
 * @ generated
 * @ param v value to set into the feature */
public void setAspects ( String v ) { } }

implementation: if ( Passage_Type . featOkTst && ( ( Passage_Type ) jcasType ) . casFeat_aspects == null ) jcasType . jcas . throwFeatMissing ( "aspects" , "edu.cmu.lti.oaqa.type.retrieval.Passage" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Passage_Type ) jcasType ) . casFeatCode_aspects , v ) ;


signature:
public class TripleSearchResult { /** * getter for triple - gets The relevant triple searched in the RDF store .
 * @ generated
 * @ return value of the feature */
public Triple getTriple ( ) { } }

implementation: if ( TripleSearchResult_Type . featOkTst && ( ( TripleSearchResult_Type ) jcasType ) . casFeat_triple == null ) jcasType . jcas . throwFeatMissing ( "triple" , "edu.cmu.lti.oaqa.type.retrieval.TripleSearchResult" ) ; return ( Triple ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TripleSearchResult_Type ) jcasType ) . casFeatCode_triple ) ) ) ;


signature:
public class TripleSearchResult { /** * setter for triple - sets The relevant triple searched in the RDF store .
 * @ generated
 * @ param v value to set into the feature */
public void setTriple ( Triple v ) { } }

implementation: if ( TripleSearchResult_Type . featOkTst && ( ( TripleSearchResult_Type ) jcasType ) . casFeat_triple == null ) jcasType . jcas . throwFeatMissing ( "triple" , "edu.cmu.lti.oaqa.type.retrieval.TripleSearchResult" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( TripleSearchResult_Type ) jcasType ) . casFeatCode_triple , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class PassageFromRelation { /** * getter for sourceRelation - gets The triple from which the search result was generated
 * @ generated
 * @ return value of the feature */
public Triple getSourceRelation ( ) { } }

implementation: if ( PassageFromRelation_Type . featOkTst && ( ( PassageFromRelation_Type ) jcasType ) . casFeat_sourceRelation == null ) jcasType . jcas . throwFeatMissing ( "sourceRelation" , "edu.cmu.lti.oaqa.type.retrieval.PassageFromRelation" ) ; return ( Triple ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( PassageFromRelation_Type ) jcasType ) . casFeatCode_sourceRelation ) ) ) ;


signature:
public class PassageFromRelation { /** * setter for sourceRelation - sets The triple from which the search result was generated
 * @ generated
 * @ param v value to set into the feature */
public void setSourceRelation ( Triple v ) { } }

implementation: if ( PassageFromRelation_Type . featOkTst && ( ( PassageFromRelation_Type ) jcasType ) . casFeat_sourceRelation == null ) jcasType . jcas . throwFeatMissing ( "sourceRelation" , "edu.cmu.lti.oaqa.type.retrieval.PassageFromRelation" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( PassageFromRelation_Type ) jcasType ) . casFeatCode_sourceRelation , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Triple { /** * getter for subject - gets The subject of the triple - always a URI .
 * @ generated
 * @ return value of the feature */
public String getSubject ( ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_subject == null ) jcasType . jcas . throwFeatMissing ( "subject" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_subject ) ;


signature:
public class Triple { /** * setter for subject - sets The subject of the triple - always a URI .
 * @ generated
 * @ param v value to set into the feature */
public void setSubject ( String v ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_subject == null ) jcasType . jcas . throwFeatMissing ( "subject" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_subject , v ) ;


signature:
public class Triple { /** * getter for predicate - gets The predicate of the triple - always a URI .
 * @ generated
 * @ return value of the feature */
public String getPredicate ( ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_predicate == null ) jcasType . jcas . throwFeatMissing ( "predicate" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_predicate ) ;


signature:
public class Triple { /** * setter for predicate - sets The predicate of the triple - always a URI .
 * @ generated
 * @ param v value to set into the feature */
public void setPredicate ( String v ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_predicate == null ) jcasType . jcas . throwFeatMissing ( "predicate" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_predicate , v ) ;


signature:
public class Triple { /** * getter for object - gets The object of the triple - may be a URI or an xml datatype ( string , int , etc . ) . See isObjeUri to determine if object is a URI .
 * @ generated
 * @ return value of the feature */
public String getObject ( ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_object == null ) jcasType . jcas . throwFeatMissing ( "object" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_object ) ;


signature:
public class Triple { /** * setter for object - sets The object of the triple - may be a URI or an xml datatype ( string , int , etc . ) . See isObjeUri to determine if object is a URI .
 * @ generated
 * @ param v value to set into the feature */
public void setObject ( String v ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_object == null ) jcasType . jcas . throwFeatMissing ( "object" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_object , v ) ;


signature:
public class Triple { /** * getter for isObjUri - gets Boolean flag - true of object field is a URI , false otherwise .
 * @ generated
 * @ return value of the feature */
public boolean getIsObjUri ( ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_isObjUri == null ) jcasType . jcas . throwFeatMissing ( "isObjUri" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_isObjUri ) ;


signature:
public class Triple { /** * setter for isObjUri - sets Boolean flag - true of object field is a URI , false otherwise .
 * @ generated
 * @ param v value to set into the feature */
public void setIsObjUri ( boolean v ) { } }

implementation: if ( Triple_Type . featOkTst && ( ( Triple_Type ) jcasType ) . casFeat_isObjUri == null ) jcasType . jcas . throwFeatMissing ( "isObjUri" , "edu.cmu.lti.oaqa.type.kb.Triple" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( Triple_Type ) jcasType ) . casFeatCode_isObjUri , v ) ;


signature:
public class ComplexQueryConcept { /** * getter for operator - gets The operator associated with this concept .
 * @ generated
 * @ return value of the feature */
public QueryOperator getOperator ( ) { } }

implementation: if ( ComplexQueryConcept_Type . featOkTst && ( ( ComplexQueryConcept_Type ) jcasType ) . casFeat_operator == null ) jcasType . jcas . throwFeatMissing ( "operator" , "edu.cmu.lti.oaqa.type.retrieval.ComplexQueryConcept" ) ; return ( QueryOperator ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ComplexQueryConcept_Type ) jcasType ) . casFeatCode_operator ) ) ) ;


signature:
public class ComplexQueryConcept { /** * setter for operator - sets The operator associated with this concept .
 * @ generated
 * @ param v value to set into the feature */
public void setOperator ( QueryOperator v ) { } }

implementation: if ( ComplexQueryConcept_Type . featOkTst && ( ( ComplexQueryConcept_Type ) jcasType ) . casFeat_operator == null ) jcasType . jcas . throwFeatMissing ( "operator" , "edu.cmu.lti.oaqa.type.retrieval.ComplexQueryConcept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( ComplexQueryConcept_Type ) jcasType ) . casFeatCode_operator , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class ComplexQueryConcept { /** * getter for operatorArgs - gets The operator arguments in a complex query concept .
 * @ generated
 * @ return value of the feature */
public FSList getOperatorArgs ( ) { } }

implementation: if ( ComplexQueryConcept_Type . featOkTst && ( ( ComplexQueryConcept_Type ) jcasType ) . casFeat_operatorArgs == null ) jcasType . jcas . throwFeatMissing ( "operatorArgs" , "edu.cmu.lti.oaqa.type.retrieval.ComplexQueryConcept" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ComplexQueryConcept_Type ) jcasType ) . casFeatCode_operatorArgs ) ) ) ;


signature:
public class ComplexQueryConcept { /** * setter for operatorArgs - sets The operator arguments in a complex query concept .
 * @ generated
 * @ param v value to set into the feature */
public void setOperatorArgs ( FSList v ) { } }

implementation: if ( ComplexQueryConcept_Type . featOkTst && ( ( ComplexQueryConcept_Type ) jcasType ) . casFeat_operatorArgs == null ) jcasType . jcas . throwFeatMissing ( "operatorArgs" , "edu.cmu.lti.oaqa.type.retrieval.ComplexQueryConcept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( ComplexQueryConcept_Type ) jcasType ) . casFeatCode_operatorArgs , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Histogramms { /** * activate Metrics */
@ GET ( ) @ Path ( ACTIVATE_METRICS_FOR_CLASS ) public String activateMetricsForClass ( @ QueryParam ( QUERY_PARAM_CLASS_FQ_NAME ) final String classFQN ) { } }

implementation: if ( classFQN != null && ! classFQN . isEmpty ( ) ) { try { final Class < ? > aClass = Class . forName ( classFQN ) ; DI . activateMetrics ( aClass ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; return e . getMessage ( ) ; } } return OK ;


signature:
public class Histogramms { /** * deactivate Metrics */
@ GET ( ) @ Path ( DE_ACTIVATE_METRICS_FOR_CLASS ) public String deActivateMetricsForClass ( @ QueryParam ( QUERY_PARAM_CLASS_FQ_NAME ) final String classFQN ) { } }

implementation: if ( classFQN != null && ! classFQN . isEmpty ( ) ) { try { final Class < ? > aClass = Class . forName ( classFQN ) ; DI . deActivateMetrics ( aClass ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; return e . getMessage ( ) ; } return OK ; } return NOT_OK ;


signature:
public class ConceptMention { /** * getter for concept - gets The abstract concept that the text span conveys .
 * @ generated
 * @ return value of the feature */
public Concept getConcept ( ) { } }

implementation: if ( ConceptMention_Type . featOkTst && ( ( ConceptMention_Type ) jcasType ) . casFeat_concept == null ) jcasType . jcas . throwFeatMissing ( "concept" , "edu.cmu.lti.oaqa.type.kb.ConceptMention" ) ; return ( Concept ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ConceptMention_Type ) jcasType ) . casFeatCode_concept ) ) ) ;


signature:
public class ConceptMention { /** * getter for matchedName - gets A synonym of the concept that best matches the concept mention ( similar to conceptMatched in metamap ) .
 * @ generated
 * @ return value of the feature */
public String getMatchedName ( ) { } }

implementation: if ( ConceptMention_Type . featOkTst && ( ( ConceptMention_Type ) jcasType ) . casFeat_matchedName == null ) jcasType . jcas . throwFeatMissing ( "matchedName" , "edu.cmu.lti.oaqa.type.kb.ConceptMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( ConceptMention_Type ) jcasType ) . casFeatCode_matchedName ) ;


signature:
public class ConceptMention { /** * setter for matchedName - sets A synonym of the concept that best matches the concept mention ( similar to conceptMatched in metamap ) .
 * @ generated
 * @ param v value to set into the feature */
public void setMatchedName ( String v ) { } }

implementation: if ( ConceptMention_Type . featOkTst && ( ( ConceptMention_Type ) jcasType ) . casFeat_matchedName == null ) jcasType . jcas . throwFeatMissing ( "matchedName" , "edu.cmu.lti.oaqa.type.kb.ConceptMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( ConceptMention_Type ) jcasType ) . casFeatCode_matchedName , v ) ;


signature:
public class ConceptMention { /** * getter for score - gets The confidence score that the concept mention matches the concept .
 * @ generated
 * @ return value of the feature */
public double getScore ( ) { } }

implementation: if ( ConceptMention_Type . featOkTst && ( ( ConceptMention_Type ) jcasType ) . casFeat_score == null ) jcasType . jcas . throwFeatMissing ( "score" , "edu.cmu.lti.oaqa.type.kb.ConceptMention" ) ; return jcasType . ll_cas . ll_getDoubleValue ( addr , ( ( ConceptMention_Type ) jcasType ) . casFeatCode_score ) ;


signature:
public class CandidateAnswerOccurrence { /** * getter for text - gets The candidate answer string .
 * @ generated
 * @ return value of the feature */
public String getText ( ) { } }

implementation: if ( CandidateAnswerOccurrence_Type . featOkTst && ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeat_text == null ) jcasType . jcas . throwFeatMissing ( "text" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerOccurrence" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeatCode_text ) ;


signature:
public class CandidateAnswerOccurrence { /** * setter for text - sets The candidate answer string .
 * @ generated
 * @ param v value to set into the feature */
public void setText ( String v ) { } }

implementation: if ( CandidateAnswerOccurrence_Type . featOkTst && ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeat_text == null ) jcasType . jcas . throwFeatMissing ( "text" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerOccurrence" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeatCode_text , v ) ;


signature:
public class CandidateAnswerOccurrence { /** * getter for mentionType - gets The manner in which covered text refers to some entity , e . g . NAME , NOMINAL , PRONOUN
 * @ generated
 * @ return value of the feature */
public String getMentionType ( ) { } }

implementation: if ( CandidateAnswerOccurrence_Type . featOkTst && ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeat_mentionType == null ) jcasType . jcas . throwFeatMissing ( "mentionType" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerOccurrence" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeatCode_mentionType ) ;


signature:
public class CandidateAnswerOccurrence { /** * setter for mentionType - sets The manner in which covered text refers to some entity , e . g . NAME , NOMINAL , PRONOUN
 * @ generated
 * @ param v value to set into the feature */
public void setMentionType ( String v ) { } }

implementation: if ( CandidateAnswerOccurrence_Type . featOkTst && ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeat_mentionType == null ) jcasType . jcas . throwFeatMissing ( "mentionType" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerOccurrence" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( CandidateAnswerOccurrence_Type ) jcasType ) . casFeatCode_mentionType , v ) ;


signature:
public class ConceptType { /** * getter for id - gets The id of the concept type .
 * @ generated
 * @ return value of the feature */
public String getId ( ) { } }

implementation: if ( ConceptType_Type . featOkTst && ( ( ConceptType_Type ) jcasType ) . casFeat_id == null ) jcasType . jcas . throwFeatMissing ( "id" , "edu.cmu.lti.oaqa.type.kb.ConceptType" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( ConceptType_Type ) jcasType ) . casFeatCode_id ) ;


signature:
public class ConceptType { /** * setter for id - sets The id of the concept type .
 * @ generated
 * @ param v value to set into the feature */
public void setId ( String v ) { } }

implementation: if ( ConceptType_Type . featOkTst && ( ( ConceptType_Type ) jcasType ) . casFeat_id == null ) jcasType . jcas . throwFeatMissing ( "id" , "edu.cmu.lti.oaqa.type.kb.ConceptType" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( ConceptType_Type ) jcasType ) . casFeatCode_id , v ) ;


signature:
public class ConceptType { /** * getter for name - gets A human readable concept label .
 * @ generated
 * @ return value of the feature */
public String getName ( ) { } }

implementation: if ( ConceptType_Type . featOkTst && ( ( ConceptType_Type ) jcasType ) . casFeat_name == null ) jcasType . jcas . throwFeatMissing ( "name" , "edu.cmu.lti.oaqa.type.kb.ConceptType" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( ConceptType_Type ) jcasType ) . casFeatCode_name ) ;


signature:
public class ConceptType { /** * getter for abbreviation - gets The abbreviation of the name label .
 * @ generated
 * @ return value of the feature */
public String getAbbreviation ( ) { } }

implementation: if ( ConceptType_Type . featOkTst && ( ( ConceptType_Type ) jcasType ) . casFeat_abbreviation == null ) jcasType . jcas . throwFeatMissing ( "abbreviation" , "edu.cmu.lti.oaqa.type.kb.ConceptType" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( ConceptType_Type ) jcasType ) . casFeatCode_abbreviation ) ;


signature:
public class ConceptType { /** * setter for abbreviation - sets The abbreviation of the name label .
 * @ generated
 * @ param v value to set into the feature */
public void setAbbreviation ( String v ) { } }

implementation: if ( ConceptType_Type . featOkTst && ( ( ConceptType_Type ) jcasType ) . casFeat_abbreviation == null ) jcasType . jcas . throwFeatMissing ( "abbreviation" , "edu.cmu.lti.oaqa.type.kb.ConceptType" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( ConceptType_Type ) jcasType ) . casFeatCode_abbreviation , v ) ;


signature:
public class ConceptSearchResult { /** * setter for concept - sets The relevant concept searched in the ontology .
 * @ generated
 * @ param v value to set into the feature */
public void setConcept ( Concept v ) { } }

implementation: if ( ConceptSearchResult_Type . featOkTst && ( ( ConceptSearchResult_Type ) jcasType ) . casFeat_concept == null ) jcasType . jcas . throwFeatMissing ( "concept" , "edu.cmu.lti.oaqa.type.retrieval.ConceptSearchResult" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( ConceptSearchResult_Type ) jcasType ) . casFeatCode_concept , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class Answer { /** * getter for variants - gets List of candidate answer variants that were merged into this final answer .
 * @ generated
 * @ return value of the feature */
public FSList getVariants ( ) { } }

implementation: if ( Answer_Type . featOkTst && ( ( Answer_Type ) jcasType ) . casFeat_variants == null ) jcasType . jcas . throwFeatMissing ( "variants" , "edu.cmu.lti.oaqa.type.answer.Answer" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Answer_Type ) jcasType ) . casFeatCode_variants ) ) ) ;


signature:
public class Answer { /** * setter for variants - sets List of candidate answer variants that were merged into this final answer .
 * @ generated
 * @ param v value to set into the feature */
public void setVariants ( FSList v ) { } }

implementation: if ( Answer_Type . featOkTst && ( ( Answer_Type ) jcasType ) . casFeat_variants == null ) jcasType . jcas . throwFeatMissing ( "variants" , "edu.cmu.lti.oaqa.type.answer.Answer" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Answer_Type ) jcasType ) . casFeatCode_variants , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class QueryConcept { /** * getter for namedEntityTypes - gets List of Named Entity types associated with this concept .
 * @ generated
 * @ return value of the feature */
public StringList getNamedEntityTypes ( ) { } }

implementation: if ( QueryConcept_Type . featOkTst && ( ( QueryConcept_Type ) jcasType ) . casFeat_namedEntityTypes == null ) jcasType . jcas . throwFeatMissing ( "namedEntityTypes" , "edu.cmu.lti.oaqa.type.retrieval.QueryConcept" ) ; return ( StringList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( QueryConcept_Type ) jcasType ) . casFeatCode_namedEntityTypes ) ) ) ;


signature:
public class QueryConcept { /** * setter for namedEntityTypes - sets List of Named Entity types associated with this concept .
 * @ generated
 * @ param v value to set into the feature */
public void setNamedEntityTypes ( StringList v ) { } }

implementation: if ( QueryConcept_Type . featOkTst && ( ( QueryConcept_Type ) jcasType ) . casFeat_namedEntityTypes == null ) jcasType . jcas . throwFeatMissing ( "namedEntityTypes" , "edu.cmu.lti.oaqa.type.retrieval.QueryConcept" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( QueryConcept_Type ) jcasType ) . casFeatCode_namedEntityTypes , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class QueryConcept { /** * getter for conceptType - gets The type of this concept .
 * @ generated
 * @ return value of the feature */
public String getConceptType ( ) { } }

implementation: if ( QueryConcept_Type . featOkTst && ( ( QueryConcept_Type ) jcasType ) . casFeat_conceptType == null ) jcasType . jcas . throwFeatMissing ( "conceptType" , "edu.cmu.lti.oaqa.type.retrieval.QueryConcept" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( QueryConcept_Type ) jcasType ) . casFeatCode_conceptType ) ;


signature:
public class QueryConcept { /** * setter for conceptType - sets The type of this concept .
 * @ generated
 * @ param v value to set into the feature */
public void setConceptType ( String v ) { } }

implementation: if ( QueryConcept_Type . featOkTst && ( ( QueryConcept_Type ) jcasType ) . casFeat_conceptType == null ) jcasType . jcas . throwFeatMissing ( "conceptType" , "edu.cmu.lti.oaqa.type.retrieval.QueryConcept" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( QueryConcept_Type ) jcasType ) . casFeatCode_conceptType , v ) ;


signature:
public class MainUndertow { /** * TODO extend for a Vaadin App Version */
private static DeploymentInfo createServletDeploymentInfos ( ) { } }

implementation: final Set < Class < ? > > typesAnnotatedWith = DI . getTypesAnnotatedWith ( WebServlet . class , true ) ; final List < ServletInfo > servletInfos = typesAnnotatedWith . stream ( ) . filter ( s -> new ReflectionUtils ( ) . checkInterface ( s , HttpServlet . class ) ) . map ( c -> { Class < HttpServlet > servletClass = ( Class < HttpServlet > ) c ; final ServletInfo servletInfo = servlet ( c . getSimpleName ( ) , servletClass , new ServletInstanceFactory < > ( servletClass ) ) ; if ( c . isAnnotationPresent ( WebInitParam . class ) ) { final WebInitParam [ ] annotationsByType = c . getAnnotationsByType ( WebInitParam . class ) ; for ( WebInitParam webInitParam : annotationsByType ) { final String value = webInitParam . value ( ) ; final String name = webInitParam . name ( ) ; servletInfo . addInitParam ( name , value ) ; } } final WebServlet annotation = c . getAnnotation ( WebServlet . class ) ; final String [ ] urlPatterns = annotation . urlPatterns ( ) ; for ( String urlPattern : urlPatterns ) { servletInfo . addMapping ( urlPattern ) ; } servletInfo . setAsyncSupported ( annotation . asyncSupported ( ) ) ; return servletInfo ; } ) . filter ( servletInfo -> ! servletInfo . getMappings ( ) . isEmpty ( ) ) . collect ( Collectors . toList ( ) ) ; final Set < Class < ? > > weblisteners = DI . getTypesAnnotatedWith ( WebListener . class ) ; final List < ListenerInfo > listenerInfos = weblisteners . stream ( ) . map ( c -> new ListenerInfo ( ( Class < ? extends EventListener > ) c ) ) . collect ( Collectors . toList ( ) ) ; final DeploymentInfo deploymentInfo = deployment ( ) . setClassLoader ( Main . class . getClassLoader ( ) ) . setContextPath ( MYAPP ) . setDeploymentName ( "ROOT" + ".war" ) . setDefaultEncoding ( "UTF-8" ) ; final Boolean shiroActive = Boolean . valueOf ( System . getProperty ( SHIRO_ACTIVE_PROPERTY , "false" ) ) ; final Boolean stagemonitorActive = Boolean . valueOf ( System . getProperty ( STAGEMONITOR_ACTIVE_PROPERTY , "false" ) ) ; if ( shiroActive ) addShiroFilter ( ) . apply ( deploymentInfo , DEFAULT_SHIRO_FILTER_NAME , DEFAULT_FILTER_MAPPING ) ; if ( stagemonitorActive ) addStagemonitor ( ) . apply ( deploymentInfo ) ; return deploymentInfo . addListeners ( listenerInfos ) . addServletContextAttribute ( WebSocketDeploymentInfo . ATTRIBUTE_NAME , new WebSocketDeploymentInfo ( ) ) . addServlets ( servletInfos ) ;


signature:
public class CandidateAnswerVariant { /** * getter for occurrences - gets The occurrences of this variant .
 * @ generated
 * @ return value of the feature */
public FSList getOccurrences ( ) { } }

implementation: if ( CandidateAnswerVariant_Type . featOkTst && ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeat_occurrences == null ) jcasType . jcas . throwFeatMissing ( "occurrences" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerVariant" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeatCode_occurrences ) ) ) ;


signature:
public class CandidateAnswerVariant { /** * setter for occurrences - sets The occurrences of this variant .
 * @ generated
 * @ param v value to set into the feature */
public void setOccurrences ( FSList v ) { } }

implementation: if ( CandidateAnswerVariant_Type . featOkTst && ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeat_occurrences == null ) jcasType . jcas . throwFeatMissing ( "occurrences" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerVariant" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeatCode_occurrences , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class CandidateAnswerVariant { /** * setter for names - sets Names for a given candidate answer variant , e . g . Tandy , Tandy Inc . for candidate answer Variant Tandy Incorporated .
 * @ generated
 * @ param v value to set into the feature */
public void setNames ( StringList v ) { } }

implementation: if ( CandidateAnswerVariant_Type . featOkTst && ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeat_names == null ) jcasType . jcas . throwFeatMissing ( "names" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerVariant" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeatCode_names , jcasType . ll_cas . ll_getFSRef ( v ) ) ;


signature:
public class CandidateAnswerVariant { /** * getter for docId - gets The unique id of the document ( if any ) from which this candidate answer was generated .
 * @ generated
 * @ return value of the feature */
public String getDocId ( ) { } }

implementation: if ( CandidateAnswerVariant_Type . featOkTst && ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeat_docId == null ) jcasType . jcas . throwFeatMissing ( "docId" , "edu.cmu.lti.oaqa.type.answer.CandidateAnswerVariant" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( CandidateAnswerVariant_Type ) jcasType ) . casFeatCode_docId ) ;


signature:
public class AbstractQuery { /** * getter for concepts - gets The list of query concepts that make up this abstract query . The list is ordered .
 * @ generated
 * @ return value of the feature */
public FSList getConcepts ( ) { } }

implementation: if ( AbstractQuery_Type . featOkTst && ( ( AbstractQuery_Type ) jcasType ) . casFeat_concepts == null ) jcasType . jcas . throwFeatMissing ( "concepts" , "edu.cmu.lti.oaqa.type.retrieval.AbstractQuery" ) ; return ( FSList ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( AbstractQuery_Type ) jcasType ) . casFeatCode_concepts ) ) ) ;


signature:
public class AbstractQuery { /** * setter for concepts - sets The list of query concepts that make up this abstract query . The list is ordered .
 * @ generated
 * @ param v value to set into the feature */
public void setConcepts ( FSList v ) { } }

implementation: if ( AbstractQuery_Type . featOkTst && ( ( AbstractQuery_Type ) jcasType ) . casFeat_concepts == null ) jcasType . jcas . throwFeatMissing ( "concepts" , "edu.cmu.lti.oaqa.type.retrieval.AbstractQuery" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( AbstractQuery_Type ) jcasType ) . casFeatCode_concepts , jcasType . ll_cas . ll_getFSRef ( v ) ) ;