functionalDependency.general
Class AttributeSet

java.lang.Object
  extended by functionalDependency.general.AttributeSet
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class AttributeSet
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable

Die Klasse AttributeSet repraesentiert eine Menge von Attributen. Die Attribute werden in der BitSet-Variablen val durch gesetzte Bits dargestellt.

Implementiert sind neben den Konstruktoren die Methoden

Im Rahmen der Aufgabenstellung muss in dieser Klasse nichts geaendert werden.


Constructor Summary
AttributeSet()
           
AttributeSet(char c)
           
AttributeSet(java.lang.String s)
           
 
Method Summary
 boolean add(char c)
           
 boolean add(java.lang.String s)
           
 AttributeSet clone()
           
 int compareTo(AttributeSet a)
           
 int compareTo(java.lang.Object o)
           
 boolean contains(char c)
          true if this contains c
 boolean equals(AttributeSet a)
           
 boolean equals(java.lang.Object a)
           
 java.lang.String getAttrString()
           
 java.util.Set<java.lang.Character> getSet()
           
 boolean includes(AttributeSet a)
          true if a is part of this
 AttributeSet intersection(AttributeSet a)
           
 boolean isEmpty()
           
static AttributeSet parseSchemaFromLine(java.lang.String line)
           
 boolean remove(char c)
           
 int size()
           
 AttributeSet substract(AttributeSet a)
          substracts a from this
 AttributeSet substract(char c)
          substracts c from this
 java.lang.String toString()
           
 AttributeSet union(AttributeSet a)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeSet

public AttributeSet()

AttributeSet

public AttributeSet(java.lang.String s)
             throws AttributeSetException
Throws:
AttributeSetException

AttributeSet

public AttributeSet(char c)
             throws AttributeSetException
Throws:
AttributeSetException
Method Detail

parseSchemaFromLine

public static AttributeSet parseSchemaFromLine(java.lang.String line)
                                        throws MainException
Throws:
MainException

add

public boolean add(java.lang.String s)
            throws AttributeSetException
Throws:
AttributeSetException

add

public boolean add(char c)
            throws AttributeSetException
Throws:
AttributeSetException

remove

public boolean remove(char c)
               throws AttributeSetException
Throws:
AttributeSetException

isEmpty

public boolean isEmpty()

size

public int size()

intersection

public AttributeSet intersection(AttributeSet a)

union

public AttributeSet union(AttributeSet a)

substract

public AttributeSet substract(AttributeSet a)
substracts a from this


substract

public AttributeSet substract(char c)
                       throws AttributeSetException
substracts c from this

Throws:
AttributeSetException

includes

public boolean includes(AttributeSet a)
true if a is part of this


contains

public boolean contains(char c)
true if this contains c


getAttrString

public java.lang.String getAttrString()

getSet

public java.util.Set<java.lang.Character> getSet()

equals

public boolean equals(AttributeSet a)

equals

public boolean equals(java.lang.Object a)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

compareTo

public int compareTo(AttributeSet a)

clone

public AttributeSet clone()
Overrides:
clone in class java.lang.Object

toString

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