|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.nom.nomwrite.impl.NOMWriteAttribute
net.sourceforge.nite.nom.nomread.impl.NOMReadAttribute
public class NOMReadAttribute
Extends the nomread version with methods for editing attributes
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sourceforge.nite.nom.nomwrite.impl.NOMWriteAttribute |
---|
NOMWriteAttribute.SharedAttribute |
Nested classes/interfaces inherited from interface net.sourceforge.nite.nom.nomwrite.NOMAttribute |
---|
NOMAttribute.SharedAtt |
Field Summary |
---|
Fields inherited from interface net.sourceforge.nite.nom.nomwrite.NOMAttribute |
---|
NOMATTR_NUMBER, NOMATTR_STRING |
Constructor Summary | |
---|---|
NOMReadAttribute(int type,
java.lang.String name,
java.lang.String string_value,
java.lang.Double double_value)
generic constructor for creating attributes. |
|
NOMReadAttribute(java.lang.String name,
java.lang.Double double_value)
create a numeric attribute |
|
NOMReadAttribute(java.lang.String name,
java.lang.String string_value)
create a string attribute |
Method Summary | |
---|---|
NOMAttribute.SharedAtt |
getShared()
return a shared view of this attribute which simply provides utility functions for editing the attribute without thinking about locking and unlocking the corpus. |
void |
setComparableValue(java.lang.Comparable value)
set the Comparable value of the attribute - for the nomread implementation throw an exception! |
void |
setDoubleValue(java.lang.Double value)
set the value of the attribute - for the nomread implementation throw an exception! |
void |
setStringValue(java.lang.String value)
set the value of the attribute - for the nomread implementation throw an exception! |
Methods inherited from class net.sourceforge.nite.nom.nomwrite.impl.NOMWriteAttribute |
---|
getComparableValue, getDoubleValue, getElement, getName, getStringValue, getType, setElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NOMReadAttribute(int type, java.lang.String name, java.lang.String string_value, java.lang.Double double_value)
public NOMReadAttribute(java.lang.String name, java.lang.String string_value)
public NOMReadAttribute(java.lang.String name, java.lang.Double double_value)
Method Detail |
---|
public void setStringValue(java.lang.String value) throws NOMException
setStringValue
in interface NOMAttribute
setStringValue
in class NOMWriteAttribute
NOMException
public void setDoubleValue(java.lang.Double value) throws NOMException
setDoubleValue
in interface NOMAttribute
setDoubleValue
in class NOMWriteAttribute
NOMException
public void setComparableValue(java.lang.Comparable value) throws NOMException
setComparableValue
in interface NOMAttribute
setComparableValue
in class NOMWriteAttribute
NOMException
public NOMAttribute.SharedAtt getShared()
getShared
in interface NOMAttribute
getShared
in class NOMWriteAttribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |