public class AttributeSet
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.util.Set |
alltypes
The set of 'all' attributes for OAVJavaTypes.
|
protected java.util.Set |
attributes
The set of normal attributes.
|
static AttributeSet |
EMPTY_ATTRIBUTESET
The constant empty attribute set.
|
Constructor and Description |
---|
AttributeSet()
Create a new attribute set.
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(AttributeSet attrset)
Add all elements on another attribute set.
|
void |
addAllType(OAVJavaType alltype)
Add type for all attributes.
|
void |
addAttribute(OAVAttributeType attr)
Add a new attributes.
|
java.lang.Object |
clone()
Clone this object.
|
boolean |
contains(OAVAttributeType attr)
Test if an attribute is contained in the attribute set.
|
java.util.Set |
getAllTypesSet()
Get the all types set.
|
java.util.Set |
getAttributeSet()
Get the attribute set.
|
void |
removeAttribute(OAVAttributeType attr)
Remove an attributes.
|
public static final AttributeSet EMPTY_ATTRIBUTESET
protected java.util.Set attributes
protected java.util.Set alltypes
public void addAttribute(OAVAttributeType attr)
attr
- The attribute.public void removeAttribute(OAVAttributeType attr)
attr
- The attribute.public void addAllType(OAVJavaType alltype)
alltype
- The alltype.public boolean contains(OAVAttributeType attr)
attr
- The attribute.public java.util.Set getAttributeSet()
public java.util.Set getAllTypesSet()
public void addAll(AttributeSet attrset)
attrset
- The set to add.public java.lang.Object clone()
clone
in class java.lang.Object