to.etc.iocular.def
Class ComponentPropertyDef

java.lang.Object
  extended by to.etc.iocular.def.ComponentPropertyDef

public class ComponentPropertyDef
extends java.lang.Object

A configuration-time definition for setting a specific property to some specific value.

Author:
Frits Jalvingh Created on May 18, 2009

Method Summary
 ComponentBuilder getBuilder()
           
 java.lang.String getPropertyName()
           
 java.lang.Class<?> getSourceClass()
           
 java.lang.String getSourceName()
           
 boolean isRequired()
          When T this property MUST be settable.
 void setRequired(boolean required)
           
 void setSourceClass(java.lang.Class<?> sourceClass)
           
 void setSourceName(java.lang.String sourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSourceName

public java.lang.String getSourceName()

setSourceName

public void setSourceName(java.lang.String sourceName)

getSourceClass

public java.lang.Class<?> getSourceClass()

setSourceClass

public void setSourceClass(java.lang.Class<?> sourceClass)

getBuilder

public ComponentBuilder getBuilder()

getPropertyName

public java.lang.String getPropertyName()

isRequired

public boolean isRequired()
When T this property MUST be settable. It is set for all explicitly defined properties and for the properties added when the property mode is 'allProperties'. It is unset for automatically added properties in 'knownProperties' mode.

Returns:

setRequired

public void setRequired(boolean required)