Class BooledAttribute
java.lang.Object
org.graffiti.plugins.inspectors.defaults.BooledAttribute
public class BooledAttribute extends Object
Class that encapsulates an Attribute and a boolean value.
- Author:
- ph
-
Constructor Summary
Constructors Constructor Description BooledAttribute(Attribute attr, boolean bool)Constructor for BooledAttribute. -
Method Summary
Modifier and Type Method Description AttributegetAttribute()Returns the attribute.booleangetBool()Returns the bool.voidsetAttribute(Attribute attribute)Sets the attribute.voidsetBool(boolean bool)Sets the bool.StringtoString()Returns the ID of the contained attribute.
-
Constructor Details
-
BooledAttribute
Constructor for BooledAttribute.- Parameters:
attr- DOCUMENT ME!bool- DOCUMENT ME!
-
-
Method Details
-
setAttribute
Sets the attribute.- Parameters:
attribute- The attribute to set
-
getAttribute
Returns the attribute.- Returns:
- Attribute
-
setBool
public void setBool(boolean bool)Sets the bool.- Parameters:
bool- The bool to set
-
getBool
public boolean getBool()Returns the bool.- Returns:
- boolean
-
toString
Returns the ID of the contained attribute.
-