org.apache.shale.clay.config.beans
Class SymbolBean

java.lang.Object
  extended by org.apache.shale.clay.config.beans.AbstractBean
      extended by org.apache.shale.clay.config.beans.SymbolBean
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
AttributeBean

public class SymbolBean
extends AbstractBean
implements Serializable, Comparable

A symbol represents a variable replaced in a JSF binding expression. Within the expression symbols are identified by the '@' prefix.

See Also:
Serialized Form

Constructor Summary
SymbolBean()
           
 
Method Summary
 int compareTo(Object obj)
          This implementation of the Comparable interface makes the name property the compared key.
 String getName()
          Returns a name corresponding to an associated JSF object property.
 String getValue()
          Returns the value of the attribute that can be a literal or a expression.
 void setName(String name)
          Sets the name of the attribute.
 void setValue(String value)
          Sets the value of the attribute.
 String toString()
           
 
Methods inherited from class org.apache.shale.clay.config.beans.AbstractBean
getDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolBean

public SymbolBean()
Method Detail

getName

public String getName()

Returns a name corresponding to an associated JSF object property.

Returns:
symbol name

getValue

public String getValue()

Returns the value of the attribute that can be a literal or a expression.

Returns:
symbol value

setName

public void setName(String name)

Sets the name of the attribute.

Parameters:
name - symbol name

setValue

public void setValue(String value)

Sets the value of the attribute.

Parameters:
value - symbol value

compareTo

public int compareTo(Object obj)

This implementation of the Comparable interface makes the name property the compared key.

Specified by:
compareTo in interface Comparable
Parameters:
obj - object to compare
Returns:
weighted value that describes this object compared with the obj

toString

public String toString()
Overrides:
toString in class Object
Returns:
describes the state of the symbol


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.