Class AttributeBean
- java.lang.Object
-
- org.shredzone.commons.taglib.processor.AttributeBean
-
- All Implemented Interfaces:
Comparable<AttributeBean>
@ParametersAreNonnullByDefault @Immutable public class AttributeBean extends Object implements Comparable<AttributeBean>
A bean that stores the parameters of a tag attribute. This bean is immutable once it is created.- Author:
- Richard "Shred" Körber
-
-
Constructor Summary
Constructors Constructor Description AttributeBean(String name, String type, boolean required, boolean rtexprvalue)
Creates and initializes a newAttributeBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AttributeBean o)
boolean
equals(Object obj)
String
getName()
String
getType()
int
hashCode()
boolean
isRequired()
boolean
isRtexprvalue()
-
-
-
Constructor Detail
-
AttributeBean
public AttributeBean(String name, String type, boolean required, boolean rtexprvalue)
Creates and initializes a newAttributeBean
.- Parameters:
name
- Attribute nametype
- Attribute typerequired
-true
: The attribute is requiredrtexprvalue
-true
The attribute is a rtexpression value
-
-
Method Detail
-
isRequired
public boolean isRequired()
-
isRtexprvalue
public boolean isRtexprvalue()
-
equals
public boolean equals(Object obj)
Two
AttributeBean
are considered equal if they have an equal name.
-
compareTo
public int compareTo(AttributeBean o)
- Specified by:
compareTo
in interfaceComparable<AttributeBean>
-
-