com.partnersoft.cog
Class CogHeader

java.lang.Object
  extended by com.partnersoft.cog.CogHeader

public class CogHeader
extends java.lang.Object

A CogHeader contains properties of a Cog data structure as a whole, as opposed to node-specific properties. It serves primarily to maintain the link to the schema and event listeners.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id: CogHeader.java 2114 2009-09-21 20:57:28Z paul $
Author:
Paul Reavis

Constructor Summary
CogHeader()
          Creates an empty CogHeader.
 
Method Summary
 void addCogEventListener(CogEventListener nosey)
           
 CogHeader copy()
          Creates a complete, deep copy of this CogHeader.
 void dispatchEvent(CogEvent event)
           
 boolean equals(java.lang.Object nother)
           
 CogSchema getSchema()
          Gets the schema that defines the data types for this cog's nodes.
 void removeCogEventListener(CogEventListener nosey)
           
 void setSchema(CogSchema newSchema)
          Sets the schema that defines the data types for this cog's nodes.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CogHeader

public CogHeader()
Creates an empty CogHeader.

Method Detail

getSchema

public CogSchema getSchema()
Gets the schema that defines the data types for this cog's nodes.

Returns:
schema for this cog

setSchema

public void setSchema(CogSchema newSchema)
Sets the schema that defines the data types for this cog's nodes.

Parameters:
newSchema - schema for this cog

copy

public CogHeader copy()
Creates a complete, deep copy of this CogHeader. The result it totally independent of this one, but is otherwise identical.


toString

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

equals

public boolean equals(java.lang.Object nother)
Overrides:
equals in class java.lang.Object

dispatchEvent

public void dispatchEvent(CogEvent event)

addCogEventListener

public void addCogEventListener(CogEventListener nosey)

removeCogEventListener

public void removeCogEventListener(CogEventListener nosey)