All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.attribute.AttributeSet

java.lang.Object
   |
   +----semper.txlayer.attribute.AttributeSet

public class AttributeSet
extends Object
implements Serializable, Cloneable
A Set of Attributes.

See Also:
html

Constructor Index

 o AttributeSet()
The empty constructor.
 o AttributeSet(Attribute)
Construct AttributeSet with one initial Attribute.
 o AttributeSet(Attribute, Attribute)
Construct AttributeSet with two initial Attributes.
 o AttributeSet(Attribute, Attribute, Attribute)
Construct AttributeSet with three initial Attributes.
 o AttributeSet(Attribute, Attribute, Attribute, Attribute)
Construct AttributeSet with four initial Attributes.
 o AttributeSet(Attribute, Attribute, Attribute, Attribute, Attribute)
Construct AttributeSet with five initial Attributes.
 o AttributeSet(Attribute, Attribute, Attribute, Attribute, Attribute, Attribute)
Construct AttributeSet with six initial Attributes.
 o AttributeSet(AttributeSet[])
Construct AttributeSet from array.
 o AttributeSet(Vector)
Construct AttributeSet from Vector

Method Index

 o clone()
In order for being cloneable by other classes, we have to override clone() to be public.
 o delete(Attribute)
Deletes an Attribute in the AttributeSet.
 o delete(Attribute[])
Deletes all Attributes in the AttributeSet that are in aa.
 o flatCopy()
Copies the set; the contents of both sets is the _same_.
 o getAttributeArray()
 o getElementOfClass(Class)
Retrieve the first element of Class c in AttributeSet.
 o hasElementOfClass(Class)
Tests whether this AttributeSet contains an Element of Class c.
 o insert(Attribute)
Inserts an Attribute into the AttributeSet.
 o insert(Attribute[])
Inserts the Attributes of the array aa one after another.
 o intersection(AttributeSet, AttributeSet)
Gives an AttributeSet containing all attributes which are in the AttributeSet as1 and also in as2.
 o intersection(Set)
Gives an AttributeSet which is the intersection of all AttributeSets in the Set s.
 o isElement(Attribute)
This method checks wether an Attribute is element of the Set.
 o isSubset(AttributeSet)
This method tests wether s is subset of this set.
 o minus(AttributeSet, AttributeSet)
Gives a AttributeSet which contains all elements of set s1 and which are not in set s2.
 o size()
 o toString()
No comment.
 o union(AttributeSet, AttributeSet)
Gives an AttributeSet containing all attributes of the AttributeSets as1 and as2.
 o union(Set)
Gives an AttributeSet which is the union of all AttributeSets in the set s.

Constructors

 o AttributeSet
 public AttributeSet()
The empty constructor.

 o AttributeSet
 public AttributeSet(AttributeSet aa[])
Construct AttributeSet from array.

 o AttributeSet
 public AttributeSet(Vector v)
Construct AttributeSet from Vector

 o AttributeSet
 public AttributeSet(Attribute a0)
Construct AttributeSet with one initial Attribute.

 o AttributeSet
 public AttributeSet(Attribute a0,
                     Attribute a1)
Construct AttributeSet with two initial Attributes.

 o AttributeSet
 public AttributeSet(Attribute a0,
                     Attribute a1,
                     Attribute a2)
Construct AttributeSet with three initial Attributes.

 o AttributeSet
 public AttributeSet(Attribute a0,
                     Attribute a1,
                     Attribute a2,
                     Attribute a3)
Construct AttributeSet with four initial Attributes.

 o AttributeSet
 public AttributeSet(Attribute a0,
                     Attribute a1,
                     Attribute a2,
                     Attribute a3,
                     Attribute a4)
Construct AttributeSet with five initial Attributes.

 o AttributeSet
 public AttributeSet(Attribute a0,
                     Attribute a1,
                     Attribute a2,
                     Attribute a3,
                     Attribute a4,
                     Attribute a5)
Construct AttributeSet with six initial Attributes.

Methods

 o insert
 public void insert(Attribute a)
Inserts an Attribute into the AttributeSet.

Parameters:
a - The Attribute to insert.
 o insert
 public void insert(Attribute aa[])
Inserts the Attributes of the array aa one after another.

Parameters:
aa - The array with the Attributes to insert.
 o delete
 public void delete(Attribute a)
Deletes an Attribute in the AttributeSet.

Parameters:
a - The Attribute to delete. When a is not part of the AttributeSet, nothing happens.
 o delete
 public void delete(Attribute aa[])
Deletes all Attributes in the AttributeSet that are in aa.

Parameters:
aa - The Attributes to delete. When an Attribute is not part of the AttributeSet, nothing happens.
 o union
 public static AttributeSet union(Set s)
Gives an AttributeSet which is the union of all AttributeSets in the set s. If one of the elements in s is not an AttributeSet, null is returned.

Parameters:
s - A Set of AttributeSets.
Returns:
AttributeSet The union of all AttributeSets in s. When s does contain an element that is not an AttributeSet, null is returned.
 o union
 public static AttributeSet union(AttributeSet as1,
                                  AttributeSet as2)
Gives an AttributeSet containing all attributes of the AttributeSets as1 and as2.

Parameters:
as1 - First AttributeSet
as2 - Second AttributeSet
Returns:
AttributeSet as1 + as2
 o intersection
 public static AttributeSet intersection(Set s)
Gives an AttributeSet which is the intersection of all AttributeSets in the Set s. If one of the elements in s is not an AttributeSet, null is returned.

Parameters:
s - A Set of AttributeSets.
Returns:
AttributeSet The intersection of all AttributeSets in s. When s does contain an element that is not an AttributeSet, null is returned.
 o intersection
 public static AttributeSet intersection(AttributeSet as1,
                                         AttributeSet as2)
Gives an AttributeSet containing all attributes which are in the AttributeSet as1 and also in as2.

Parameters:
as1 - First AttributeSet
as2 - Second AttributeSet
Returns:
AttributeSet s1 intersection s2
 o minus
 public static AttributeSet minus(AttributeSet as1,
                                  AttributeSet as2)
Gives a AttributeSet which contains all elements of set s1 and which are not in set s2.

Parameters:
as1 - First AttributeSet
as2 - Second AttributeSet
Returns:
AttributeSet s1-s2
 o isElement
 public boolean isElement(Attribute a)
This method checks wether an Attribute is element of the Set.

Parameters:
a - The Attribute to check for membership.
Returns:
boolean true When a is an element of the set, false otherwise.
 o isSubset
 public boolean isSubset(AttributeSet as)
This method tests wether s is subset of this set.

Returns:
boolean true When s is a subset, false otherwise
 o size
 public int size()
Returns:
int The number of objects in the AttributeSet.
 o getAttributeArray
 public Attribute[] getAttributeArray()
Returns:
Attribute[] The elements of the set as an array. Note, that the sequence may be arbitrary.
 o hasElementOfClass
 public boolean hasElementOfClass(Class c)
Tests whether this AttributeSet contains an Element of Class c.

Parameters:
s - c The Class to check for.
Returns:
s true when the AttributeSet contains any element of class c
 o getElementOfClass
 public Attribute getElementOfClass(Class c)
Retrieve the first element of Class c in AttributeSet.

Parameters:
s - c The Class to check for.
Returns:
s The first element of class c or null.
 o toString
 public String toString()
No comment.

Overrides:
toString in class Object
 o flatCopy
 public AttributeSet flatCopy()
Copies the set; the contents of both sets is the _same_.

Returns:
AttributeSet A new set with references to the same Attributes as are in this.
 o clone
 public Object clone() throws CloneNotSupportedException
In order for being cloneable by other classes, we have to override clone() to be public. Note that this does not do a deep clone of the contained Set.

Returns:
Object A (not deep)cloned Copy of this.
Throws: CloneNotSupportedException
When the superclass does not want to clone us. This should never ever happen.
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index