sg.edu.nus.comp.nlp.ims.corpus
Interface ISentence

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ASentence, CSentence

public interface ISentence
extends java.lang.Cloneable

sentence interface. a sentence consists of several items.

Author:
zhongzhi

Method Summary
 boolean appendItem(IItem p_Item)
          append Item to the end
 void clear()
          clear the sentence
 java.lang.String get(java.lang.String p_Key)
          get parameter
 IItem getItem(int p_Index)
          get Item of p_Index if p_Index is out of range, return null
 boolean set(java.lang.String p_Key, java.lang.String p_Value)
          set parameter
 int size()
          get length of this sentence
 

Method Detail

appendItem

boolean appendItem(IItem p_Item)
append Item to the end

Parameters:
p_Item - item to append
Returns:
success or not

getItem

IItem getItem(int p_Index)
get Item of p_Index if p_Index is out of range, return null

Parameters:
p_Index - item index
Returns:
item

size

int size()
get length of this sentence

Returns:
size

set

boolean set(java.lang.String p_Key,
            java.lang.String p_Value)
set parameter

Parameters:
p_Key - parameter key
p_Value - parameter value
Returns:
success or not

get

java.lang.String get(java.lang.String p_Key)
get parameter

Parameters:
p_Key - parameter key
Returns:
parameter value

clear

void clear()
clear the sentence