|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
org.apache.tuscany.model.assembly.impl.ExtensibleImpl
org.apache.tuscany.model.assembly.impl.PropertyImpl
public class PropertyImpl
An implementation of Property.
Constructor Summary | |
---|---|
protected |
PropertyImpl()
|
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 value)
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 class org.apache.tuscany.model.assembly.impl.ExtensibleImpl |
---|
accept, freeze, getExtensibilityAttributes, getExtensibilityElements, initialize |
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl |
---|
accept, checkInitialized, checkNotFrozen, freeze, initialize, isFrozen, isInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
protected PropertyImpl()
Method Detail |
---|
public java.lang.Object getDefaultValue()
Property
getDefaultValue
in interface Property
public java.lang.String getName()
Property
getName
in interface Property
public java.lang.Class<?> getType()
Property
getType
in interface Property
public boolean isMany()
Property
isMany
in interface Property
public boolean isRequired()
Property
isRequired
in interface Property
public void setDefaultValue(java.lang.Object value)
Property
setDefaultValue
in interface Property
value
- the default value of ths propertypublic void setMany(boolean value)
Property
setMany
in interface Property
value
- true if the property should allow multiple valuespublic void setName(java.lang.String value)
Property
setName
in interface Property
value
- the property namepublic void setRequired(boolean value)
Property
setRequired
in interface Property
value
- set to true to require that a value be supplied for uses of this propertypublic void setType(java.lang.Class<?> value)
Property
setType
in interface Property
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 |