|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.Attribute
public class Attribute
An Attribute represents a single attribute of a relation. Every Attribute has a name, a domain, and an optional option string. Attribute objects are globally unique --- there is exactly one Attribute object for every distinct attribute in the program.
Field Summary | |
---|---|
protected Domain |
attributeDomain
Attribute domain. |
protected java.lang.String |
attributeName
Attribute name. |
protected java.lang.String |
attributeOptions
Attribute options. |
protected Relation |
relation
Relation that this attribute is associated with. |
Method Summary | |
---|---|
static Attribute |
fromXMLElement(org.jdom.Element e,
XMLFactory f)
|
Domain |
getDomain()
Returns the domain of this attribute. |
java.lang.String |
getOptions()
Returns the options for this attribute. |
Relation |
getRelation()
Returns the relation that this attribute is associated with. |
java.lang.String |
toString()
|
org.jdom.Element |
toXMLElement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String attributeName
protected Domain attributeDomain
protected java.lang.String attributeOptions
protected Relation relation
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Domain getDomain()
public java.lang.String getOptions()
public Relation getRelation()
public static Attribute fromXMLElement(org.jdom.Element e, XMLFactory f)
public org.jdom.Element toXMLElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |