gov.nih.nci.dtsrpc.client
Class Role

java.lang.Object
  extended bygov.nih.nci.dtsrpc.client.Role
All Implemented Interfaces:
java.io.Serializable

public class Role
extends java.lang.Object
implements java.io.Serializable

Role

Since:
DTSRPC 1.0
Version:
1.0
Author:
Northrop Grumman Information Technology
See Also:
Serialized Form

Constructor Summary
Role()
          constructor
Role(java.lang.String name, java.lang.String value)
          Constructs a Role with the given name and value.
Role(java.lang.String name, java.lang.String value, java.lang.String modifier)
          Constructs a Role with the given name, value, and modifier.
 
Method Summary
 java.lang.String getModifier()
          Gets modifier
 java.lang.String getName()
          Gets name
 java.lang.String getValue()
          Gets value
 void setModifier(java.lang.String modifier)
          Assigns a value to modifier
 void setName(java.lang.String name)
          Assigns a value to name
 void setValue(java.lang.String value)
          Assigns a value to value
 org.w3c.dom.Document toDOM()
          Gets a XML Document representation of a Role object.
 java.lang.String toString()
          Gets a String representation of a Role object
 java.lang.String toXML()
          Gets a XML representation of a Role object in String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role()
constructor


Role

public Role(java.lang.String name,
            java.lang.String value)
Constructs a Role with the given name and value.

Parameters:
name - name of the Role.
value - value of the Role.
Since:
DTSRPC 2.0

Role

public Role(java.lang.String name,
            java.lang.String value,
            java.lang.String modifier)
Constructs a Role with the given name, value, and modifier.

Parameters:
name - name of the Role.
value - value of the Role.
modifier - modifier of the Role.
Since:
DTSRPC 2.0
Method Detail

setName

public void setName(java.lang.String name)
Assigns a value to name

Parameters:
name - property name

setValue

public void setValue(java.lang.String value)
Assigns a value to value

Parameters:
value - property value

setModifier

public void setModifier(java.lang.String modifier)
Assigns a value to modifier

Parameters:
modifier - modifier value

getName

public java.lang.String getName()
Gets name

Returns:
name

getValue

public java.lang.String getValue()
Gets value

Returns:
value

getModifier

public java.lang.String getModifier()
Gets modifier

Returns:
modifier

toXML

public java.lang.String toXML()
Gets a XML representation of a Role object in String

Returns:
a XML representation of a Role object in String

toString

public java.lang.String toString()
Gets a String representation of a Role object

Returns:
a String representation of a Role object

toDOM

public org.w3c.dom.Document toDOM()
Gets a XML Document representation of a Role object.

Returns:
a XML Document representation of a Role object