gov.nih.nci.dtsrpc.client
Class RoleType

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

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

RoleType

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

Constructor Summary
RoleType()
          default constructor
RoleType(java.lang.String name, int id, java.lang.String code)
          Constructs a RoleType with the given name, id, and code values.
 
Method Summary
 java.lang.String getCode()
          Gets code
 int getId()
          Gets id
 java.lang.String getName()
          Gets name
 void setCode(java.lang.String code)
          Assigns a value to code
 void setId(int id)
          Sets id
 void setName(java.lang.String name)
          Assigns a value to name
 org.w3c.dom.Document toDOM()
          Gets a XML Document representation of a RoleType object
 java.lang.String toString()
          Gets a String representation of a RoleType object
 java.lang.String toXML()
          Gets a XML representation of a RoleType object in String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleType

public RoleType()
default constructor


RoleType

public RoleType(java.lang.String name,
                int id,
                java.lang.String code)
Constructs a RoleType with the given name, id, and code values.

Parameters:
name - name of the RoleType.
id - id of the RoleType.
code - code of the RoleType.
Since:
DTSRPC 2.0
Method Detail

setId

public void setId(int id)
Sets id

Parameters:
id - identifier
Since:
DTSRPC 2.0

setCode

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

Parameters:
code - code
Since:
DTSRPC 2.0

setName

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

Parameters:
name - name
Since:
DTSRPC 2.0

getId

public int getId()
Gets id

Returns:
id

getCode

public java.lang.String getCode()
Gets code

Returns:
code

getName

public java.lang.String getName()
Gets name

Returns:
name

toXML

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

Returns:
a XML representation of a RoleType object

toString

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

Returns:
a String representation of a RoleType object

toDOM

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

Returns:
a XML Document representation of a RoleType object