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

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

public class AttributeBean
extends SymbolBean
implements Serializable

Represents a value for a component property or a tag attribute. Instances of this class will be placed in the ComponentBean attributes collection.

See Also:
Serialized Form

Field Summary
static String BINDING_TYPE_EARLY
          This code means that if the attribute value contains an expression, it will be evalutated before populating the component.
static String BINDING_TYPE_METHOD
          Mnemonic the signifies the a method binding expression.
static String BINDING_TYPE_NONE
          This constant indicates that the attribute value will be passed as its literal value and no attempt to evaluate a contained expression will be preformed.
static String BINDING_TYPE_VALUE
          Mnemonic that signifies a value binding expression.
 
Constructor Summary
AttributeBean()
           
 
Method Summary
 String getBindingType()
          Returns a String that indicates the binding type for the attribute.
 ComponentBean getHasAParent()
          Returns the parent component containing this object instance.
 AttributeBean getIsAParent()
          Returns a parent component that this component extends in terms of a meta relationship.
 boolean isInheritanceFinal()
          Returns boolean that indicates the meta inheritance relationships have been resolved.
 void setBindingType(String bindingType)
          Sets a String that indicates the binding type for the attribute.
 void setHasAParent(ComponentBean bean)
          Sets the parent component that contains this object instance.
 void setInheritanceFinal(boolean b)
          Sets a boolean that indicates the meta inheritance relationships have been resolved.
 void setIsAParent(AttributeBean bean)
          Sets a parent component that this component extends in terms of a meta relationship.
 String toString()
           
 
Methods inherited from class org.apache.shale.clay.config.beans.SymbolBean
compareTo, getName, getValue, setName, setValue
 
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
 

Field Detail

BINDING_TYPE_METHOD

public static final String BINDING_TYPE_METHOD

Mnemonic the signifies the a method binding expression.

See Also:
Constant Field Values

BINDING_TYPE_VALUE

public static final String BINDING_TYPE_VALUE

Mnemonic that signifies a value binding expression.

See Also:
Constant Field Values

BINDING_TYPE_EARLY

public static final String BINDING_TYPE_EARLY

This code means that if the attribute value contains an expression, it will be evalutated before populating the component.

See Also:
Constant Field Values

BINDING_TYPE_NONE

public static final String BINDING_TYPE_NONE

This constant indicates that the attribute value will be passed as its literal value and no attempt to evaluate a contained expression will be preformed.

See Also:
Constant Field Values
Constructor Detail

AttributeBean

public AttributeBean()
Method Detail

toString

public String toString()
Overrides:
toString in class SymbolBean
Returns:
named value list that represents the object's state

getHasAParent

public ComponentBean getHasAParent()

Returns the parent component containing this object instance.

Returns:
composition parent

setHasAParent

public void setHasAParent(ComponentBean bean)

Sets the parent component that contains this object instance.

Parameters:
bean - the composition parent

getIsAParent

public AttributeBean getIsAParent()

Returns a parent component that this component extends in terms of a meta relationship.

Returns:
returns the inheritance parent

setIsAParent

public void setIsAParent(AttributeBean bean)

Sets a parent component that this component extends in terms of a meta relationship.

Parameters:
bean - the inheritance parent

getBindingType

public String getBindingType()

Returns a String that indicates the binding type for the attribute. The valid values include ("VB", "MB", "None", "Early").

Returns:
binding type enumeration

setBindingType

public void setBindingType(String bindingType)

Sets a String that indicates the binding type for the attribute. The valid values include ("VB", "MB", "None", "Early").

Parameters:
bindingType - enumeration

isInheritanceFinal

public boolean isInheritanceFinal()

Returns boolean that indicates the meta inheritance relationships have been resolved.

Returns:
true if inheritance has been resolved

setInheritanceFinal

public void setInheritanceFinal(boolean b)

Sets a boolean that indicates the meta inheritance relationships have been resolved.

Parameters:
b - true if inheritance has been resolved


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