|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractProperty
A property allows for the configuration of an implementation with externally set data values. An implementation can have zero or more properties. Each property has a data type, which may be either simple or complex. An implementation may also define a default value for a property.
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the property name. |
java.lang.Object |
getValue()
Returns the default value of the property. |
javax.xml.namespace.QName |
getXSDElement()
Returns the element defining the data type of this property. |
javax.xml.namespace.QName |
getXSDType()
Returns the data type of this property. |
boolean |
isMany()
Returns true if the property allows multiple values. |
boolean |
isMustSupply()
Returns true if a value must be supplied for the property. |
void |
setMany(boolean many)
Sets whether or not the property allows multiple values. |
void |
setMustSupply(boolean mustSupply)
Sets whether a value must be supplied for the property. |
void |
setName(java.lang.String name)
Sets the property name. |
void |
setValue(java.lang.Object defaultValue)
Sets the default value of the property. |
void |
setXSDElement(javax.xml.namespace.QName element)
Sets the element defining the data type of this property. |
void |
setXSDType(javax.xml.namespace.QName type)
Sets the data type of this property. |
Methods inherited from interface org.apache.tuscany.sca.assembly.Base |
---|
isUnresolved, setUnresolved |
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible |
---|
getExtensions |
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint |
---|
getRequiredIntents, getType, setType |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- the property namejava.lang.Object getValue()
void setValue(java.lang.Object defaultValue)
defaultValue
- the default value of this propertyboolean isMany()
void setMany(boolean many)
many
- true if the property should allow multiple valuesboolean isMustSupply()
void setMustSupply(boolean mustSupply)
mustSupply
- set to true to require that a value be supplied for
uses of this propertyjavax.xml.namespace.QName getXSDType()
void setXSDType(javax.xml.namespace.QName type)
type
- the type of this propertyjavax.xml.namespace.QName getXSDElement()
void setXSDElement(javax.xml.namespace.QName element)
element
- the element defining the type of this property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |