uk.org.ogsadai.dataresource.config
Class RoleMapperSpec

java.lang.Object
  |
  +--uk.org.ogsadai.dataresource.config.RoleMapperSpec

public class RoleMapperSpec
extends java.lang.Object

Role mapper information.

The information is set up using an XML fragment from a data resource configuration document. Specifically the roleMap element.

See the data_resource_config.xsd XML Schema.

Author:
The OGSA-DAI Project Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  java.lang.String mConfiguration
           
private  java.lang.String mImplementation
           
private  java.lang.String mName
           
 
Constructor Summary
RoleMapperSpec()
           
 
Method Summary
 void configure(org.w3c.dom.Element elt)
          Create role mapper information by parsing the given element and build an XML document holding this information.
 java.lang.String getConfiguration()
          Get configuration file.
 java.lang.String getImplementation()
          Get class name.
 java.lang.String getName()
          Get role mapper name.
 void setConfiguration(java.lang.String configuration)
          Set configuration file.
 void setImplementation(java.lang.String className)
          Set class name.
 void setName(java.lang.String name)
          Set role mapper name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

mName

private java.lang.String mName

mImplementation

private java.lang.String mImplementation

mConfiguration

private java.lang.String mConfiguration
Constructor Detail

RoleMapperSpec

public RoleMapperSpec()
Method Detail

configure

public void configure(org.w3c.dom.Element elt)
               throws java.lang.IllegalArgumentException
Create role mapper information by parsing the given element and build an XML document holding this information.

Parameters:
elt - roleMap element from a data resource configuration document.
Throws:
java.lang.IllegalArgumentException - if elt is null or is not a roleMap element.

getName

public java.lang.String getName()
Get role mapper name.

Returns:
name of role mapper.

setName

public void setName(java.lang.String name)
Set role mapper name.

Parameters:
name - Name of role mapper.

getImplementation

public java.lang.String getImplementation()
Get class name.

Returns:
class name.

setImplementation

public void setImplementation(java.lang.String className)
Set class name.

Parameters:
className - Class name.
Throws:
java.lang.IllegalArgumentException - if className is null or the empty string.

getConfiguration

public java.lang.String getConfiguration()
Get configuration file.

Returns:
configuration file.

setConfiguration

public void setConfiguration(java.lang.String configuration)
Set configuration file.

Parameters:
configuration - Configuration file