org.richfaces.cdk.attributes
Class Attribute

java.lang.Object
  extended by org.richfaces.cdk.attributes.Attribute
All Implemented Interfaces:
KeyedType

public class Attribute
extends java.lang.Object
implements KeyedType

Author:
Nick Belaevski

Nested Class Summary
static class Attribute.Kind
           
static class Attribute.Type
           
 
Constructor Summary
Attribute()
           
Attribute(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getComponentAttributeName()
           
 java.lang.String getDefaultValue()
           
 java.lang.String getKey()
           
 Attribute.Kind getKind()
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean isRequired()
           
 void setComponentAttributeName(java.lang.String componentAttributeName)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setKind(Attribute.Kind kind)
           
 void setName(java.lang.String name)
           
 void setRequired(boolean required)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()

Attribute

public Attribute(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getKey

public java.lang.String getKey()
Specified by:
getKey in interface KeyedType

isRequired

public boolean isRequired()
Returns:
the required

setRequired

public void setRequired(boolean required)
Parameters:
required - the required to set

getDefaultValue

public java.lang.String getDefaultValue()
Returns:
the defaultValue

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Parameters:
defaultValue - the defaultValue to set

getKind

public Attribute.Kind getKind()
Returns:
the kind

setKind

public void setKind(Attribute.Kind kind)
Parameters:
kind - the kind to set

getComponentAttributeName

public java.lang.String getComponentAttributeName()
Returns:
the componentAttributeName

setComponentAttributeName

public void setComponentAttributeName(java.lang.String componentAttributeName)
Parameters:
componentAttributeName - the componentAttributeName to set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.