JCas
v0.3.1

cas.config
Class JCasCustomAuthorizationTag

java.lang.Object
  extended bycas.xml.AbstractCasSaxTagHandler
      extended bycas.config.JCasCustomAuthorizationTag
All Implemented Interfaces:
CasSaxTagHandler

public class JCasCustomAuthorizationTag
extends AbstractCasSaxTagHandler

Configuration object for CUSTOM authorizations.

Version:
1.0
Author:
Ralph Schuster

Field Summary
static String DEFAULT_PWD_COLUMN
          The default password column
static String DEFAULT_TABLE_NAME
          The default table name
static String DEFAULT_UID_COLUMN
          The default user column
protected static String NAME
          The tag name
protected static String[] parents
          The parents
protected  String pwdColumn
          The pwd column
protected  String tableName
          The table name
protected  String uidColumn
          The uid column
 
Constructor Summary
JCasCustomAuthorizationTag()
          Creates a new instance of JCasCustomAuthorizationTag
 
Method Summary
protected  AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
          Returns a new instance of the handler for the specified sub tag.
 String[] getParentTagNames()
          Returns the tag names of all possible parents.
 String getPwdColumn()
          Returns the PWD column.
protected  String[] getSubTagNames()
          Returns the tag names that can appear within this handler but actually do not contain other tags.
 String getTableName()
          Returns the table name.
 String getTagName()
          Returns the tag name this handler will take care of.
 String getUidColumn()
          Returns the UID column.
 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

DEFAULT_TABLE_NAME

public static final String DEFAULT_TABLE_NAME
The default table name

See Also:
Constant Field Values

DEFAULT_UID_COLUMN

public static final String DEFAULT_UID_COLUMN
The default user column

See Also:
Constant Field Values

DEFAULT_PWD_COLUMN

public static final String DEFAULT_PWD_COLUMN
The default password column

See Also:
Constant Field Values

NAME

protected static String NAME
The tag name


parents

protected static String[] parents
The parents


tableName

protected String tableName
The table name


uidColumn

protected String uidColumn
The uid column


pwdColumn

protected String pwdColumn
The pwd column

Constructor Detail

JCasCustomAuthorizationTag

public JCasCustomAuthorizationTag()
Creates a new instance of JCasCustomAuthorizationTag

Method Detail

createHandler

protected AbstractCasSaxTagHandler createHandler(String tagName,
                                                 Attributes attributes)
Description copied from class: AbstractCasSaxTagHandler
Returns a new instance of the handler for the specified sub tag.

Specified by:
createHandler in class AbstractCasSaxTagHandler
Parameters:
tagName - - name of the sub tag
Returns:
new instance of sub tag handler or null

getParentTagNames

public String[] getParentTagNames()
Description copied from class: AbstractCasSaxTagHandler
Returns the tag names of all possible parents.

Specified by:
getParentTagNames in class AbstractCasSaxTagHandler
Returns:
- the tag names of possible parents

getSubTagNames

protected String[] getSubTagNames()
Description copied from class: AbstractCasSaxTagHandler
Returns the tag names that can appear within this handler but actually do not contain other tags.

Overrides:
getSubTagNames in class AbstractCasSaxTagHandler
Returns:
- all tag names that represent simple tags.

getTagName

public String getTagName()
Description copied from interface: CasSaxTagHandler
Returns the tag name this handler will take care of.

Returns:
- a tag name.

tagCompleted

public void tagCompleted()
                  throws SAXException
Description copied from class: AbstractCasSaxTagHandler
Validates the configuration. By default this method does nothing but handlers should override to check the values.

Specified by:
tagCompleted in interface CasSaxTagHandler
Overrides:
tagCompleted in class AbstractCasSaxTagHandler
Throws:
SAXException

getTableName

public String getTableName()
Returns the table name.


getUidColumn

public String getUidColumn()
Returns the UID column.


getPwdColumn

public String getPwdColumn()
Returns the PWD column.


JCas
v0.3.1