|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.attributes.AttributeValue
public class AttributeValue
The value of an attribute. Contains an object which is the actual value, plus some metadata: if the attribute is "live," i.e., reflecting real data attached to a node attribute, it also offers information about the node, the attribute ID and the type of attribute. This is NOT a reusable object; it is a write-once snapshot.
Field Summary | |
---|---|
static AttributeValue |
DEFAULT_VALUE
|
Constructor Summary | |
---|---|
AttributeValue(AttributeValue attvalue,
NodeAddress node,
AttributeID attributeID,
java.lang.Class attributeClass)
Constructor for a "live" AttributeValue, i.e., reflecting real data in the db-core, attached to a node. |
|
AttributeValue(java.lang.Object value)
Constructor for a "detached" AttributeValue, i.e., not reflecting real data in the db-core, not attached to a node. |
Method Summary | |
---|---|
boolean |
equals(AttributeValue other)
Test the equality of this value with another one. |
java.lang.Class |
getAttributeClass()
Get the attribute class if this is "live," null otherwise. |
AttributeID |
getAttributeID()
Returns the AttributeID of the attribute for which this is the value in some node, or null if it is not so attached |
NodeAddress |
getNode()
Returns the NodeAddress of the node for which this is the value of some attribute, or null if it is not so attached |
AttributeValue |
intern()
|
boolean |
isDefaultValue()
|
boolean |
isLive()
Returns true if and only if this is a "live" Attribute Value, i.e., reflecting real data in the db-core, attachd to a node |
boolean |
nullValue()
Returns whether the value herein is null. |
java.lang.StringBuffer |
render()
Render as a StringBuffer with correct punctuation. |
java.lang.String |
toRawString()
Render as a StringBuffer in a way that is not interpretable by the command interpreter, but is nicer for humans to read (without the $$). |
AttributeValue |
unintern()
|
java.lang.Object |
value()
Get the value itself. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AttributeValue DEFAULT_VALUE
Constructor Detail |
---|
public AttributeValue(java.lang.Object value)
public AttributeValue(AttributeValue attvalue, NodeAddress node, AttributeID attributeID, java.lang.Class attributeClass)
Method Detail |
---|
public java.lang.Object value() throws Scheherexception
Scheherexception
public boolean nullValue()
public java.lang.Class getAttributeClass()
public java.lang.String toRawString() throws Scheherexception
Scheherexception
public java.lang.StringBuffer render() throws Scheherexception
Scheherexception
public boolean equals(AttributeValue other) throws Scheherexception
Scheherexception
public boolean isLive()
public NodeAddress getNode()
public AttributeID getAttributeID()
public AttributeValue intern() throws Scheherexception
Scheherexception
public boolean isDefaultValue()
public AttributeValue unintern() throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |