|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.impl.Attribute
Represents the attribute definition used by dynamic tags, such as whether the attribute is required or any default values etc.
Field Summary | |
private Expression |
defaultValue
the default value expression |
private java.lang.String |
name
the name of the attribute |
private boolean |
required
whether this attribute is required |
Constructor Summary | |
Attribute()
|
Method Summary | |
Expression |
getDefaultValue()
Returns the defaultValue. |
java.lang.String |
getName()
Returns the name. |
boolean |
isRequired()
Returns whether this attribute is required. |
void |
setDefaultValue(Expression defaultValue)
Sets the defaultValue. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setRequired(boolean required)
Sets whether this attribute is required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String name
private Expression defaultValue
private boolean required
Constructor Detail |
public Attribute()
Method Detail |
public boolean isRequired()
public void setRequired(boolean required)
required
- is true if this attribute is a mandatory attributepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to setpublic Expression getDefaultValue()
public void setDefaultValue(Expression defaultValue)
defaultValue
- The defaultValue to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |