|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.attributes.AttributeSet
public class AttributeSet
An object that represents a collection of all the attributes attached to a certain node. It conspicuously does not allow access to individual Attribute objects once they are given to it, but instead acts as a middleman for accessing them.
Constructor Summary | |
---|---|
AttributeSet(GenericNode node,
NodeConfig config)
Constructor for attaching to a node |
|
AttributeSet(LinkLabel linkLabel)
Constructor for attaching to a link label. |
Method Summary | |
---|---|
boolean |
attributeEquals(AttributeID ID,
AttributeValue other,
boolean overrideInheritance)
Determine whether an attribute is equal to some constant value. |
boolean |
attributeGreaterThan(AttributeID ID,
AttributeValue other,
boolean overrideInheritance)
Determine whether an attribute is greater than some constant value. |
boolean |
containsAttribute(AttributeID ID)
Determines whether the set has an attribute of a certain name. |
void |
enableInheritance(Document doc,
LinkProperties linkProperties)
Set links to the Document and the LinkProperties objects in this AttributeSet so it can implement attribute inheritance. |
java.lang.Class |
getAttributeClass(AttributeID ID)
Get an existing attribute (value)'s class. |
java.util.Iterator |
getAttributeIDs()
Get an iterator over the AttributeIDs of all the attributes in the set. |
java.lang.Class |
getAttributeType(AttributeID ID)
Get an existing attribute's type as a class. |
AttributeValue |
getAttributeValue(AttributeID ID,
boolean overrideInheritance)
Get an existing attribute's value. |
int |
getMaxAttributeLength(AttributeID ID)
Returns the "maximum" length of the acceptable value for an attribute. |
void |
initLinkAttribute(AttributeID ID,
Attribute attribute)
Add a new attribute. |
boolean |
modified(AttributeID ID)
Returns whether an attribute has been set(), i.e., modified from its default value. |
int |
numAttributes()
Return the number of attributes. |
AttributeValue |
setAttribute(AttributeID ID,
AttributeValue value)
Set an existing attribute from a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeSet(GenericNode node, NodeConfig config) throws Scheherexception
Scheherexception
public AttributeSet(LinkLabel linkLabel)
Method Detail |
---|
public void enableInheritance(Document doc, LinkProperties linkProperties)
public int numAttributes()
public void initLinkAttribute(AttributeID ID, Attribute attribute) throws Scheherexception
ID
- The name of the attribute.attribute
- The attribute object.
Scheherexception
public AttributeValue setAttribute(AttributeID ID, AttributeValue value) throws Scheherexception
ID
- The AttributeID for the attribute.value
- The value to set.
Scheherexception
public AttributeValue getAttributeValue(AttributeID ID, boolean overrideInheritance) throws Scheherexception
ID
- The AttributeID for the attribute.overrideInheritance
- Set to true if you want to only
check the node itself, but false if you want to allow the node
to inherit the value from a neighborhing node (according to the
rules set in LinkProperties).
Scheherexception
public java.lang.Class getAttributeClass(AttributeID ID) throws Scheherexception
ID
- The AttributeID for the attribute.
Scheherexception
public boolean attributeEquals(AttributeID ID, AttributeValue other, boolean overrideInheritance) throws Scheherexception
Scheherexception
public boolean attributeGreaterThan(AttributeID ID, AttributeValue other, boolean overrideInheritance) throws Scheherexception
Scheherexception
public java.lang.Class getAttributeType(AttributeID ID) throws Scheherexception
ID
- The AttributeID for the attribute.
Scheherexception
public int getMaxAttributeLength(AttributeID ID) throws Scheherexception
Scheherexception
public java.util.Iterator getAttributeIDs() throws Scheherexception
Scheherexception
public boolean modified(AttributeID ID) throws Scheherexception
ID
- The AttributeID for the attribute.
Scheherexception
public boolean containsAttribute(AttributeID ID) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |