spo.src.SPDB.DocumentImpl
Class CONS

java.lang.Object
  |
  +--spo.src.SPDB.DocumentImpl.CONS
Direct Known Subclasses:
Conditional, Context

public class CONS
extends java.lang.Object

A superclass that represents both context and conditional

See Also:
Conditional

Field Summary
(package private)  java.util.Vector elements
           
(package private)  int id
           
(package private)  int rid
           
(package private)  int size
           
 
Constructor Summary
CONS(int rid, int id)
          Initialize an instance for the class
CONS(int rid, int id, java.lang.String type)
          Initialize an instance for the class
CONS(int rid, int id, java.util.Vector elements, java.lang.String type)
          Initialize an instance for the class
 
Method Summary
 java.util.Vector getElements()
           
 int getID()
           
 int getRID()
           
 int getSize()
           
 java.lang.String getType()
           
 void insert2CONS(DBUtil dbutil)
          Insert into the table SPO_CONS
 void reset(int id, org.w3c.dom.Node consNode)
           
 void set(org.w3c.dom.Node consNode, java.lang.String type)
          Initialize an instance for the class
 void setElements(java.util.Vector elements)
           
 void setID(int id)
           
 void setRID(int rid)
           
 void setSize(int size)
           
 void setType(java.lang.String type)
           
(package private)  java.lang.String toXML()
          Transform a CONS object to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rid

int rid

id

int id

size

int size

elements

java.util.Vector elements
Constructor Detail

CONS

public CONS(int rid,
            int id)
Initialize an instance for the class

Parameters:
rid - the relation identification number
id - the SPO identification number

CONS

public CONS(int rid,
            int id,
            java.lang.String type)
Initialize an instance for the class

Parameters:
rid - the relation identification number
id - the SPO identification number
type - the string determine the class type and its value is either "cnt" or "cnd"

CONS

public CONS(int rid,
            int id,
            java.util.Vector elements,
            java.lang.String type)
Initialize an instance for the class

Parameters:
rid - the relation identification number
id - the SPO identification number
type - the string determine the class type and its value is either "cnt" or "cnd"
elements - the CONS in Vector format
Method Detail

set

public void set(org.w3c.dom.Node consNode,
                java.lang.String type)
Initialize an instance for the class

Parameters:
type - the string determine the class type and its value is either "cnt" or "cnd"
consNode - the CONS in XML DOM Node format

reset

public void reset(int id,
                  org.w3c.dom.Node consNode)

insert2CONS

public void insert2CONS(DBUtil dbutil)
Insert into the table SPO_CONS

Parameters:
dbutil - A DBUtil utility class object

toXML

java.lang.String toXML()
Transform a CONS object to XML


setRID

public void setRID(int rid)

getRID

public int getRID()

setID

public void setID(int id)

getID

public int getID()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setSize

public void setSize(int size)

getSize

public int getSize()

setElements

public void setElements(java.util.Vector elements)

getElements

public java.util.Vector getElements()


Copyright © 2003 UKCS. All Rights Reserved.