gov.nih.nci.mageom.domain.impl
Class NameValueTypeImpl

java.lang.Object
  extended by gov.nih.nci.mageom.domain.impl.MAGEOMObject
      extended by gov.nih.nci.mageom.domain.impl.NameValueTypeImpl
All Implemented Interfaces:
NameValueType, java.io.Serializable

public class NameValueTypeImpl
extends MAGEOMObject
implements NameValueType

A tuple designed to store data, keyed by a name and type.

Version:
%I%, %G%
See Also:
Serialized Form

Field Summary
protected static java.util.ArrayList allAssociationMethods
           
protected static java.util.Hashtable associationMethods
           
protected  java.lang.String name
          The name of the key.
protected  NameValueType[] propertySets
          DOCUMENT ME
protected  int propertySetsCount
          The count of NameValueType objects.
protected  java.lang.String type
          The type of the key.
protected  java.lang.String value
          The value of the name.
 
Constructor Summary
NameValueTypeImpl()
          Default constructor
 
Method Summary
 java.lang.String getName()
          Returns the value of this NameValueType object's name attribute.
 NameValueType[] getPropertySets()
          Returns the value of this NameValueType object's propertySets attribute.
 int getPropertySetsCount()
          Returns the count of all NameValueType associated with this NameValueType object.
 java.lang.String getType()
          Returns the value of this NameValueType object's type attribute.
 java.lang.String getValue()
          Returns the value of this NameValueType object's value attribute.
 java.util.Hashtable getXMLMethodDescriptors()
          Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.
protected  void init()
           
 NameValueType[] searchNameValueTypes(NameValueTypeSearchCriteria criteria)
          Returns an array of NameValueType objects that satisfy the given NameValueTypeSearchCriteria.
 void setName(java.lang.String p_name)
          Sets the name attribute.
 void setPropertySets(NameValueType[] p_propertySets)
          Sets the propertySets attribute.
 void setType(java.lang.String p_type)
          Sets the type attribute.
 void setValue(java.lang.String p_value)
          Sets the value attribute.
 java.lang.String toString()
          Returns a String representation of this object suitable for console display.
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc, java.util.ArrayList fillOutValues)
          Returns an XML representation of the object.
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.MAGEOMObject
getId, getIsEditable, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allAssociationMethods

protected static java.util.ArrayList allAssociationMethods

associationMethods

protected static java.util.Hashtable associationMethods

name

protected java.lang.String name
The name of the key.


value

protected java.lang.String value
The value of the name.


type

protected java.lang.String type
The type of the key.


propertySetsCount

protected int propertySetsCount
The count of NameValueType objects.


propertySets

protected NameValueType[] propertySets
DOCUMENT ME

Constructor Detail

NameValueTypeImpl

public NameValueTypeImpl()
Default constructor

Method Detail

init

protected void init()

searchNameValueTypes

public NameValueType[] searchNameValueTypes(NameValueTypeSearchCriteria criteria)
                                     throws gov.nih.nci.common.search.SearchException
Returns an array of NameValueType objects that satisfy the given NameValueTypeSearchCriteria.

Parameters:
criteria - The NameValueTypeSearchCriteria which represents a query for NameValueType objects.
Returns:
An array of NameValueType objects.
Throws:
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchException

setName

public void setName(java.lang.String p_name)
Sets the name attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a NameValueType object.

Specified by:
setName in interface NameValueType
Parameters:
p_name - The new value for name.
See Also:
NameValueType.getName()

getName

public java.lang.String getName()
Description copied from interface: NameValueType
Returns the value of this NameValueType object's name attribute. Description of name: The name of the key.

Specified by:
getName in interface NameValueType
Returns:
String The value of name.
See Also:
NameValueType.getName()

setValue

public void setValue(java.lang.String p_value)
Sets the value attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a NameValueType object.

Specified by:
setValue in interface NameValueType
Parameters:
p_value - The new value for value.
See Also:
NameValueType.getValue()

getValue

public java.lang.String getValue()
Description copied from interface: NameValueType
Returns the value of this NameValueType object's value attribute. Description of value: The value of the name.

Specified by:
getValue in interface NameValueType
Returns:
String The value of value.
See Also:
NameValueType.getValue()

setType

public void setType(java.lang.String p_type)
Sets the type attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a NameValueType object.

Specified by:
setType in interface NameValueType
Parameters:
p_type - The new value for type.
See Also:
NameValueType.getType()

getType

public java.lang.String getType()
Description copied from interface: NameValueType
Returns the value of this NameValueType object's type attribute. Description of type: The type of the key.

Specified by:
getType in interface NameValueType
Returns:
String The value of type.
See Also:
NameValueType.getType()

setPropertySets

public void setPropertySets(NameValueType[] p_propertySets)
Sets the propertySets attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a NameValueType object.

Specified by:
setPropertySets in interface NameValueType
Parameters:
p_propertySets - The new value for propertySets.
See Also:
NameValueType.getPropertySets()

getPropertySets

public NameValueType[] getPropertySets()
Description copied from interface: NameValueType
Returns the value of this NameValueType object's propertySets attribute.

Specified by:
getPropertySets in interface NameValueType
Returns:
gov.nih.nci.mageom.bean.NameValueType[] The value of propertySets.
See Also:
NameValueType.getPropertySets()

getPropertySetsCount

public int getPropertySetsCount()
Returns the count of all NameValueType associated with this NameValueType object.

Returns:
the count
See Also:
NameValueType.getPropertySets()

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)

toXMLDoc

public org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)

toXMLProcessor

public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
                                          java.util.ArrayList fillOutValues)
Returns an XML representation of the object. The document is not modified.

Parameters:
doc - the working document
fillOutValues - a list of attribute names that should have full XML for their values.
Returns:
org.w3c.dom.Element an XML representation

getXMLMethodDescriptors

public java.util.Hashtable getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.

Returns:
Hashtable The Hashtable of descriptors.

toString

public java.lang.String toString()
Returns a String representation of this object suitable for console display.

Overrides:
toString in class java.lang.Object
Returns:
the String representation.