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
-
AttributeSet()
- The empty constructor.
-
AttributeSet(Attribute)
- Construct AttributeSet with one initial Attribute.
-
AttributeSet(Attribute, Attribute)
- Construct AttributeSet with two initial Attributes.
-
AttributeSet(Attribute, Attribute, Attribute)
- Construct AttributeSet with three initial Attributes.
-
AttributeSet(Attribute, Attribute, Attribute, Attribute)
- Construct AttributeSet with four initial Attributes.
-
AttributeSet(Attribute, Attribute, Attribute, Attribute, Attribute)
- Construct AttributeSet with five initial Attributes.
-
AttributeSet(Attribute, Attribute, Attribute, Attribute, Attribute, Attribute)
- Construct AttributeSet with six initial Attributes.
-
AttributeSet(AttributeSet[])
- Construct AttributeSet from array.
-
AttributeSet(Vector)
- Construct AttributeSet from Vector
-
clone()
- In order for being cloneable by other classes, we have to override
clone() to be public.
-
delete(Attribute)
- Deletes an Attribute in the AttributeSet.
-
delete(Attribute[])
- Deletes all Attributes in the AttributeSet that are
in aa.
-
flatCopy()
- Copies the set; the contents of both sets is the _same_.
-
getAttributeArray()
-
-
getElementOfClass(Class)
- Retrieve the first element of Class c in AttributeSet.
-
hasElementOfClass(Class)
- Tests whether this AttributeSet contains an Element
of Class c.
-
insert(Attribute)
- Inserts an Attribute into the AttributeSet.
-
insert(Attribute[])
- Inserts the Attributes of the array aa one after
another.
-
intersection(AttributeSet, AttributeSet)
- Gives an AttributeSet containing all attributes which
are in the AttributeSet as1 and also in as2.
-
intersection(Set)
- Gives an AttributeSet which is the intersection of all
AttributeSets in the
Set s.
-
isElement(Attribute)
- This method checks wether an Attribute is element of the Set.
-
isSubset(AttributeSet)
- This method tests wether s is subset of this set.
-
minus(AttributeSet, AttributeSet)
- Gives a AttributeSet which contains all elements of set s1
and which are not in set s2.
-
size()
-
-
toString()
- No comment.
-
union(AttributeSet, AttributeSet)
- Gives an AttributeSet containing all attributes of
the AttributeSets as1 and as2.
-
union(Set)
- Gives an AttributeSet which is the union of all
AttributeSets in the set s.
AttributeSet
public AttributeSet()
- The empty constructor.
AttributeSet
public AttributeSet(AttributeSet aa[])
- Construct AttributeSet from array.
AttributeSet
public AttributeSet(Vector v)
- Construct AttributeSet from Vector
AttributeSet
public AttributeSet(Attribute a0)
- Construct AttributeSet with one initial Attribute.
AttributeSet
public AttributeSet(Attribute a0,
Attribute a1)
- Construct AttributeSet with two initial Attributes.
AttributeSet
public AttributeSet(Attribute a0,
Attribute a1,
Attribute a2)
- Construct AttributeSet with three initial Attributes.
AttributeSet
public AttributeSet(Attribute a0,
Attribute a1,
Attribute a2,
Attribute a3)
- Construct AttributeSet with four initial Attributes.
AttributeSet
public AttributeSet(Attribute a0,
Attribute a1,
Attribute a2,
Attribute a3,
Attribute a4)
- Construct AttributeSet with five initial Attributes.
AttributeSet
public AttributeSet(Attribute a0,
Attribute a1,
Attribute a2,
Attribute a3,
Attribute a4,
Attribute a5)
- Construct AttributeSet with six initial Attributes.
insert
public void insert(Attribute a)
- Inserts an Attribute into the AttributeSet.
- Parameters:
- a - The Attribute to insert.
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.
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.
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.
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.
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
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.
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
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
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.
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
size
public int size()
- Returns:
- int The number of objects in the AttributeSet.
getAttributeArray
public Attribute[] getAttributeArray()
- Returns:
- Attribute[] The elements of the set as an array.
Note, that the sequence may be arbitrary.
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
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.
toString
public String toString()
- No comment.
- Overrides:
- toString in class Object
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.
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