net.sf.bddbddb
Class Attribute

java.lang.Object
  extended by net.sf.bddbddb.Attribute

public class Attribute
extends java.lang.Object

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.

Version:
$Id: Attribute.java 353 2004-10-27 19:21:05Z joewhaley $
Author:
jwhaley

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

attributeName

protected java.lang.String attributeName
Attribute name.


attributeDomain

protected Domain attributeDomain
Attribute domain.


attributeOptions

protected java.lang.String attributeOptions
Attribute options.


relation

protected Relation relation
Relation that this attribute is associated with.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDomain

public Domain getDomain()
Returns the domain of this attribute.

Returns:
domain

getOptions

public java.lang.String getOptions()
Returns the options for this attribute.

Returns:
options

getRelation

public Relation getRelation()
Returns the relation that this attribute is associated with.

Returns:
options

fromXMLElement

public static Attribute fromXMLElement(org.jdom.Element e,
                                       XMLFactory f)

toXMLElement

public org.jdom.Element toXMLElement()


Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.