com.partnersoft.data.cog
Class CogNaming

java.lang.Object
  extended by com.partnersoft.data.cog.Cog
      extended by com.partnersoft.data.cog.CogNaming

public class CogNaming
extends Cog

An actual cog data named values list.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
CogNaming()
           
CogNaming(Naming values)
           
 
Method Summary
protected  Cog deepCopyImp()
          Subclasses must implement this to provide a deep copy.
protected  int getChildCountImp()
          Subclasses must implement this to return the number of children nodes.
protected  java.lang.String[] getChildNamesImp()
          Subclasses must implement this to provide a list of valid children names or indexes.
protected  java.lang.Object getChildNodeImp(java.lang.String childName)
          Subclasses must implement this to return the Cog node or primitive leaf node with the given name or index.
 Naming getValues()
          Values.
protected  java.lang.Object removeChildNodeImp(java.lang.String childName)
           
protected  void setChildNodeImp(java.lang.String childName, java.lang.Object newValue)
           
 void setValues(Naming argValues)
           
protected  Cog shallowCopyImp()
          Subclasses must implement this to provide a shallow copy.
 java.lang.String toString()
           
 
Methods inherited from class com.partnersoft.data.cog.Cog
convertAndSet, deepCopy, getBoolean, getCog, getDatatypeName, getDouble, getFloat, getID, getInt, getList, getLong, getNaming, getObject, getShort, getString, getStringButNullBlanks, move, remove, setBoolean, setCog, setDatatypeName, setDouble, setFloat, setID, setInt, setList, setLong, setNaming, setObject, setShort, setString, setValues, shallowCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CogNaming

public CogNaming()

CogNaming

public CogNaming(Naming values)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValues

public Naming getValues()
Values. All values are kept, even if no longer defined in the datatype.

Overrides:
getValues in class Cog

setValues

public void setValues(Naming argValues)

getChildNodeImp

protected java.lang.Object getChildNodeImp(java.lang.String childName)
Description copied from class: Cog
Subclasses must implement this to return the Cog node or primitive leaf node with the given name or index. For structures, this is the value of the named field. For sets of named values, this is the value named. For lists, this is the entry with the given number. Etc.

Specified by:
getChildNodeImp in class Cog

removeChildNodeImp

protected java.lang.Object removeChildNodeImp(java.lang.String childName)
Specified by:
removeChildNodeImp in class Cog

setChildNodeImp

protected void setChildNodeImp(java.lang.String childName,
                               java.lang.Object newValue)
Specified by:
setChildNodeImp in class Cog

getChildCountImp

protected int getChildCountImp()
Description copied from class: Cog
Subclasses must implement this to return the number of children nodes.

Specified by:
getChildCountImp in class Cog

getChildNamesImp

protected java.lang.String[] getChildNamesImp()
Description copied from class: Cog
Subclasses must implement this to provide a list of valid children names or indexes.

Specified by:
getChildNamesImp in class Cog

shallowCopyImp

protected Cog shallowCopyImp()
Description copied from class: Cog
Subclasses must implement this to provide a shallow copy.

Specified by:
shallowCopyImp in class Cog

deepCopyImp

protected Cog deepCopyImp()
Description copied from class: Cog
Subclasses must implement this to provide a deep copy.

Specified by:
deepCopyImp in class Cog