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.SetalltypesThe set of 'all' attributes for OAVJavaTypes.protected java.util.SetattributesThe set of normal attributes.static AttributeSetEMPTY_ATTRIBUTESETThe 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 voidaddAll(AttributeSet attrset)Add all elements on another attribute set.voidaddAllType(OAVJavaType alltype)Add type for all attributes.voidaddAttribute(OAVAttributeType attr)Add a new attributes.java.lang.Objectclone()Clone this object.booleancontains(OAVAttributeType attr)Test if an attribute is contained in the attribute set.java.util.SetgetAllTypesSet()Get the all types set.java.util.SetgetAttributeSet()Get the attribute set.voidremoveAttribute(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:
clonein classjava.lang.Object- Returns:
- The clone.
-
-