gov.nih.nci.dtsrpc.client
Class Silo

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

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

Silo

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

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

Constructor Detail

Silo

public Silo()
default constructor


Silo

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

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

setId

public void setId(int id)
Assign a value to id

Parameters:
id - identifier

setName

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

Parameters:
name - name

getId

public int getId()
Gets id

Returns:
id

getName

public java.lang.String getName()
Gets name

Returns:
name

toXML

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

Returns:
a XML representation of a Silo object in String

toString

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

Returns:
a String representation of a Silo object.

toDOM

public org.w3c.dom.Document toDOM()
Converts a Silo object to a XML Document

Returns:
a XML Document representation of a Silo object