|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.jape.JdmAttribute
public class JdmAttribute
THIS CLASS SHOULDN'T BE HERE. Please let's all ignore it, and maybe it will go away.
Implements the TIPSTER and GDM API for attributes.
Test code in testAttributes
class.
The JdmAttribute class would accept all java serialisable classes, all jdm classes and also all user-defined classes provided they implement the Serializable interface. This restriction is necessary since Jdm uses Java serialisation to ensure object persistency. However, making classes serialisable is usually quite straightforward.
Constructor Summary | |
---|---|
protected |
JdmAttribute()
|
|
JdmAttribute(JdmAttribute jdmAttr)
throws JdmException when the value isn't one of the types we know how to store, i.e., a serialisable or Jdm class. |
|
JdmAttribute(String name,
Object value)
throws JdmException when the value isn't one of the types we know how to store, i.e., a serialisable or Jdm class. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
|
Object |
getValue()
|
String |
getValueType()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JdmAttribute()
public JdmAttribute(String name, Object value)
public JdmAttribute(JdmAttribute jdmAttr)
Method Detail |
---|
public String getName()
public Object getValue()
public String getValueType()
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |