gov.nih.nci.lexbig.ext
Class RoleType

java.lang.Object
  extended by gov.nih.nci.lexbig.ext.RoleType
All Implemented Interfaces:
java.io.Serializable

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

RoleType

Since:
DLBExt 1.0
Version:
DLBExt 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

Since:
DLBExt 1.0

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:
DLBExt 1.0
Method Detail

setId

public void setId(int id)
Sets id

Parameters:
id - identifier
Since:
DLBExt 1.0

setCode

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

Parameters:
code - code
Since:
DLBExt 1.0

setName

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

Parameters:
name - name
Since:
DLBExt 1.0

getId

public int getId()
Gets id

Returns:
id
Since:
DLBExt 1.0

getCode

public java.lang.String getCode()
Gets code

Returns:
code
Since:
DLBExt 1.0

getName

public java.lang.String getName()
Gets name

Returns:
name
Since:
DLBExt 1.0

toXML

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

Returns:
a XML representation of a RoleType object
Since:
DLBExt 1.0

toString

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

Overrides:
toString in class java.lang.Object
Returns:
a String representation of a RoleType object
Since:
DLBExt 1.0

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
Since:
DLBExt 1.0


Copyright © 2007 National Cancer Institute (NCI). All Rights Reserved.