|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SCAPropertyController
Property control interface for SCA primitive components.
Field Summary | |
---|---|
static java.lang.String |
NAME
NAME of the content controller. |
Method Summary | |
---|---|
boolean |
containsPropertyName(java.lang.String name)
Return true if the specified property has been set. |
SCAPropertyController |
getPromoter(java.lang.String name)
Return the reference of the property controller which promotes the specified property. |
java.lang.String |
getPromoterPropertyName(java.lang.String name)
Return the name of the property defined at the level of the component which promotes the specified property. |
java.lang.String[] |
getPropertyNames()
Return the names of the properties whose values have been set by invoking setValue(String, Object) . |
java.lang.Class<?> |
getType(java.lang.String name)
Return the type of the specified property. |
java.lang.Object |
getValue(java.lang.String name)
Return the value of the specified property. |
boolean |
hasBeenSet(java.lang.String name)
Return true if the specified property has been set by
calling setValue(String, Object) . |
boolean |
isDeclared(java.lang.String name)
Return true if the specified property is declared by the
content class associated with the current component. |
void |
setPromoter(java.lang.String name,
SCAPropertyController promoter)
Set the reference of the property controller which promotes the specified property to the current property controller. |
void |
setPromoter(java.lang.String name,
SCAPropertyController promoter,
java.lang.String promoterPropertyName)
Set the reference of the property controller which promotes the specified property name to the current property controller and the associated property name at the level of the promoter. |
void |
setType(java.lang.String name,
java.lang.Class<?> type)
Set the type of the specified property. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Set the value of the specified property. |
Field Detail |
---|
static final java.lang.String NAME
NAME
of the content controller.
Method Detail |
---|
void setType(java.lang.String name, java.lang.Class<?> type)
Set the type of the specified property. If the property type has already been set, the old value is lost, and the new one is recorded.
The rationale for recording property types lies in the fact that complex properties may have a type which differs from the one of the field where their values will be injected. Typically, complex property values will be injected in fields of type Object.
name
- the property nametype
- the property typevoid setValue(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
name
- the property namevalue
- the property value
java.lang.IllegalArgumentException
- if a type has been defined for the specified property with setValue(String, Object)
and if the specified value is not an
instance of this typejava.lang.Class<?> getType(java.lang.String name)
null
if
the property type has not been set.
name
- the property name
java.lang.Object getValue(java.lang.String name)
null
if
the property value has not been set.
name
- the property name
boolean containsPropertyName(java.lang.String name)
true
if the specified property has been set.
name
- the property name
true
if the property has been set,
false
otherwisejava.lang.String[] getPropertyNames()
setValue(String, Object)
.
boolean isDeclared(java.lang.String name)
true
if the specified property is declared by the
content class associated with the current component. Else, or if the
current component is not associated with a content class, return
false
.
name
- the property name
true
if the property is declaredboolean hasBeenSet(java.lang.String name)
true
if the specified property has been set by
calling setValue(String, Object)
.
name
- the property name
true
if the property has been setvoid setPromoter(java.lang.String name, SCAPropertyController promoter) throws IllegalPromoterException
name
- the property namepromoter
- the promoter component or
null
to unregister the promoter
IllegalPromoterException
- when attempting to set a cycle between property promotersSCAPropertyController getPromoter(java.lang.String name)
null
if the property is managed
locally by the current property controller.
name
- the property name
null
void setPromoter(java.lang.String name, SCAPropertyController promoter, java.lang.String promoterPropertyName) throws IllegalPromoterException
name
- the property namepromoter
- the promoter component or
null
to unregister the promoterpromoterPropertyName
- the property name at the level of the promoter
IllegalPromoterException
- when attempting to set a cycle between property promotersjava.lang.String getPromoterPropertyName(java.lang.String name)
null
if the
property is managed locally by the current property controller.
name
- the property name
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |