Class AttributeSet
- java.lang.Object
-
- jadex.rules.rulesystem.rete.extractors.AttributeSet
-
- All Implemented Interfaces:
java.lang.Cloneable
public class AttributeSet extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description AttributeSet()
Create a new attribute set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
EMPTY_ATTRIBUTESET
public static final AttributeSet EMPTY_ATTRIBUTESET
The constant empty attribute set.
-
attributes
protected java.util.Set attributes
The set of normal attributes.
-
alltypes
protected java.util.Set alltypes
The set of 'all' attributes for OAVJavaTypes.
-
-
Method Detail
-
addAttribute
public void addAttribute(OAVAttributeType attr)
Add a new attributes.- Parameters:
attr
- The attribute.
-
removeAttribute
public void removeAttribute(OAVAttributeType attr)
Remove an attributes.- Parameters:
attr
- The attribute.
-
addAllType
public void addAllType(OAVJavaType alltype)
Add type for all attributes.- Parameters:
alltype
- The alltype.
-
contains
public boolean contains(OAVAttributeType attr)
Test if an attribute is contained in the attribute set.- Parameters:
attr
- The attribute.- Returns:
- True, if contained.
-
getAttributeSet
public java.util.Set getAttributeSet()
Get the attribute set.- Returns:
- The attribute set.
-
getAllTypesSet
public java.util.Set getAllTypesSet()
Get the all types set.- Returns:
- The all types set.
-
addAll
public void addAll(AttributeSet attrset)
Add all elements on another attribute set.- Parameters:
attrset
- The set to add.
-
clone
public java.lang.Object clone()
Clone this object.- Overrides:
clone
in classjava.lang.Object
- Returns:
- The clone.
-
-