|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cas.xml.AbstractCasSaxTagHandler cas.config.JCasQueryTag
Configuration object for an extended authorization with a SQL query.
Field Summary | |
protected static String |
NAME
The tag name |
protected static String[] |
parents
The parents |
protected Set |
returnValues
The return values |
protected String |
select
The select query |
Constructor Summary | |
JCasQueryTag()
Creates a new instance of JCasQueryTag |
Method Summary | |
protected boolean |
checkReturnValue(String s)
Checks the return value and translates it to a boolean. |
protected AbstractCasSaxTagHandler |
createHandler(String tagName,
Attributes attributes)
Returns a new instance of the handler for the specified sub tag. |
boolean |
execute(Statement st,
String uid,
String scheme)
Executes the query. |
String[] |
getParentTagNames()
Returns the tag names of all possible parents. |
String |
getSelect()
Returns the select query. |
protected String[] |
getSubTagNames()
Returns the tag names that can appear within this handler but actually do not contain other tags. |
String |
getTagName()
Returns the tag name this handler will take care of. |
void |
tagCompleted()
Validates the configuration. |
Methods inherited from class cas.xml.AbstractCasSaxTagHandler |
characters, clear, endElement, getHandler, getSubHandler, getSubHandlerCount, getSubHandlers, getSubTag, getSubTag, getSubTagCount, getSubTags, ignoresUnknownTags, setAttributes, setIgnoreUnknownTags, startElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static String NAME
protected static String[] parents
protected String select
protected Set returnValues
Constructor Detail |
public JCasQueryTag()
Method Detail |
protected AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
AbstractCasSaxTagHandler
createHandler
in class AbstractCasSaxTagHandler
tagName
- - name of the sub tag
public String[] getParentTagNames()
AbstractCasSaxTagHandler
getParentTagNames
in class AbstractCasSaxTagHandler
protected String[] getSubTagNames()
AbstractCasSaxTagHandler
getSubTagNames
in class AbstractCasSaxTagHandler
public String getTagName()
CasSaxTagHandler
public void tagCompleted() throws SAXException
AbstractCasSaxTagHandler
tagCompleted
in interface CasSaxTagHandler
tagCompleted
in class AbstractCasSaxTagHandler
SAXException
public String getSelect()
public boolean execute(Statement st, String uid, String scheme) throws SQLException
st
- - statement on databaseuid
- - user id of requesting userscheme
- - scheme name
SQLException
protected boolean checkReturnValue(String s)
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |