|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hops.common.RecognitionObject
public class RecognitionObject
Constructor Summary | |
---|---|
RecognitionObject()
Creates a new instance of RecognitionObject |
Method Summary | |
---|---|
HopsAttribute |
addAttribute(HopsAttribute attribute)
Adds an attribute to the RecognitionObject If the key exists, then replaces the old attribute with the new one. |
void |
addAttribute(HopsAttribute[] attributes)
Adds a list of attributes to the RecognitionObject |
void |
clear()
Clear the RecognitionObject |
HopsAttribute[] |
getAllAttributes()
Returns all the attributes recognized |
HopsAttribute |
getAttribute(java.lang.String key)
Returns an attribute recognized |
java.util.Collection |
getAttributes()
Returns all the attributes stored |
int |
getFrom()
Gets the from of the current pagination. |
java.util.Set |
getKeys()
Returns all the keys of the attributes stored |
int |
getLength()
Gets the length of the current pagination. |
org.apache.log4j.Logger |
getLogger()
Gets the logger |
int |
getRemaining()
Gets the remaining of the current pagination. |
int |
getTotal()
Gets the total of the current pagination. |
void |
remove(java.lang.String key)
Remove the attribute |
void |
setFrom(int from)
Sets the from of the current pagination (called by the OM). |
void |
setTotal(int total)
Sets the total of the current pagination (called by the OM) |
int |
size()
Gets the size of the attributes stored in the RecognitionObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecognitionObject()
Method Detail |
---|
public HopsAttribute addAttribute(HopsAttribute attribute)
attribute
- The attribute to add
public void addAttribute(HopsAttribute[] attributes)
attributes
- List of attributes to addpublic HopsAttribute getAttribute(java.lang.String key)
key
- The key of the attribue
public HopsAttribute[] getAllAttributes()
public java.util.Set getKeys()
public java.util.Collection getAttributes()
public void remove(java.lang.String key)
key
- the attribute namepublic void clear()
public int size()
public org.apache.log4j.Logger getLogger()
public void setTotal(int total)
public int getTotal()
public void setFrom(int from)
public int getFrom()
public int getRemaining()
public int getLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |