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 Attribute
getAttribute()
Returns the attribute.boolean
getBool()
Returns the bool.void
setAttribute(Attribute attribute)
Sets the attribute.void
setBool(boolean bool)
Sets the bool.String
toString()
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.
-