IBM Information Integrator for Content V8.2 APIs

com.ibm.mm.beans.infomining
Class CMBRecord

java.lang.Object
  |
  +--com.ibm.mm.beans.infomining.CMBRecord

public class CMBRecord
extends java.lang.Object

A record contains the meta data for a document.


Constructor Summary
CMBRecord(java.lang.String pid, CMBSchema schema)
          Creates a new record according to the specified schema.
 
Method Summary
 java.lang.String getPID()
          Returns the PID of this record.
 java.lang.Object getValue(java.lang.String key)
          Returns the value associated with the specified key.
 java.util.Set keySet()
          Returns a set view of the keys contained in this record.
 void setValue(java.lang.String key, java.lang.Object value)
          Associates the specified value with the specified key in this record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBRecord

public CMBRecord(java.lang.String pid,
                 CMBSchema schema)
Creates a new record according to the specified schema.
Parameters:
pid - the PID of the record
schema - the record is created according to this schema
Method Detail

getPID

public java.lang.String getPID()
Returns the PID of this record.
Returns:
the record PID

keySet

public java.util.Set keySet()
Returns a set view of the keys contained in this record.
Returns:
a set containing the keys of the record.

setValue

public void setValue(java.lang.String key,
                     java.lang.Object value)
              throws CMBNoSuchKeyException
Associates the specified value with the specified key in this record. The type of the value is expected to be the same as defined in the catalog schema used to create the record.
Parameters:
key - key with which the specified value is to be associated
value - value to be associated with the specified key
Throws:
CMBNoSuchKeyException - if the specified key does not exist in the record

getValue

public java.lang.Object getValue(java.lang.String key)
                          throws CMBNoSuchKeyException
Returns the value associated with the specified key.


IBM Information Integrator for Content V8.2 APIs

© Copyright International Business Machines Corporation 1996, 2003 IBM Corp. All rights reserved.