All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.agimatec.sql.meta.script.ExtractWord Maven / Gradle / Ivy

There is a newer version: 2.5.27
Show newest version
package com.agimatec.sql.meta.script;

/**
 * Description:   
* Copyright: Copyright (c) 2007
* Company: Agimatec GmbH
* * @author Roman Stumm */ class ExtractWord extends A_ExtractPart { private final String word; private final boolean optional; public ExtractWord(String aWord, boolean isOptional) { word = aWord; optional = isOptional; } public int fits(String aToken) { return word.equalsIgnoreCase(aToken) ? C_FIT : optional ? C_NOT_HANDLED : C_ERROR; } public String toString() { return (optional) ? "[" + word + "]" : word; } public int process(String aToken, PropertiesExtractor extractor) { return fits(aToken); } protected boolean isOptional() { return optional; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy