|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
A description of a property that can be used to configure a component.
Method Summary | |
---|---|
java.lang.Object |
getDefaultValue()
Returns the default value of the property. |
java.lang.String |
getName()
Returns the property name. |
java.lang.Class<?> |
getType()
Returns the type of this property as used by the runtime. |
boolean |
isMany()
Returns true if the property allows multiple values. |
boolean |
isRequired()
Returns true if a value must be supplied for the property. |
void |
setDefaultValue(java.lang.Object value)
Sets the default value of the property. |
void |
setMany(boolean value)
Sets whether or not the property allows multiple values. |
void |
setName(java.lang.String name)
Sets the property name. |
void |
setRequired(boolean value)
Sets whether a value must be supplied for the property. |
void |
setType(java.lang.Class<?> value)
Sets the type of this property as used by the runtime |
Methods inherited from interface org.apache.tuscany.model.assembly.Extensible |
---|
getExtensibilityAttributes, getExtensibilityElements |
Methods inherited from interface org.apache.tuscany.model.assembly.AssemblyObject |
---|
accept, freeze, initialize |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- the property namejava.lang.Object getDefaultValue()
void setDefaultValue(java.lang.Object value)
value
- the default value of ths propertyboolean isMany()
void setMany(boolean value)
value
- true if the property should allow multiple valuesboolean isRequired()
void setRequired(boolean value)
value
- set to true to require that a value be supplied for uses of this propertyjava.lang.Class<?> getType()
void setType(java.lang.Class<?> value)
value
- the type of this property as used by the runtime
|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |