com.togethersoft.openapi.rwi.extension
Interface RwiPropertyProvider

All Known Implementing Classes:
RwiPropertyProviderAdapter

public interface RwiPropertyProvider

Presents provider that suited to work with certain property. It should be used
whenever it is neccessary to produce some calculation in set/get/has/can methods
in opposite to simple retrieve realized in RwiPropertyMap. In order to use this provider
it has to be registered through the RwiExtensionManager.
Some methods gets context element to produce additional calculations. This element has to implement
RwiPropertyMap interface.

Author:
TogetherSoft
Since: Together 3.0
See Also: RwiPropertyMap

Method Summary
 RwiPropertyaddProperty(RwiPropertyMap element, String propertyValue)
          Specific method for this property.
 booleancanAddProperty(RwiPropertyMap element, String propertyValue)
          Specific method for this property.
 booleancanSetProperty(RwiPropertyMap element, String propertyValue)
          Specific method for this property.
 booleancanSetProperty(RwiPropertyMap element, boolean propertyValue)
          Specific method for this property.
 RwiElementEnumerationdependencies(RwiPropertyMap element)
           
 StringgetProperty(RwiPropertyMap element)
          Specific method for this property.
 StringgetPropertyName()
          Return property name which this provider is responsible for.
 booleanhasProperty(RwiPropertyMap element)
          Specific method for this property.
 booleanisApplicable(RwiPropertyMap element)
          Checks does this property applicapable for specified element.
 booleanisPropertyReadable(RwiPropertyMap element)
          Specific method for this property.
 booleanisPropertyWritable(RwiPropertyMap element)
          Specific method for this property.
 RwiPropertyEnumerationproperties(RwiPropertyMap element)
          Specific method for this property.
 voidsetProperty(RwiPropertyMap element, String propertyValue)
          Specific method for this property.
 voidsetProperty(RwiPropertyMap element, boolean propertyValue)
          Specific method for this property.

Method Detail

addProperty

public RwiProperty addProperty(RwiPropertyMap element, String propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.addProperty(java.lang.String,java.lang.String).

canAddProperty

public boolean canAddProperty(RwiPropertyMap element, String propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.canAddProperty(java.lang.String,java.lang.String).

canSetProperty

public boolean canSetProperty(RwiPropertyMap element, String propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.canSetProperty(java.lang.String,java.lang.String).

canSetProperty

public boolean canSetProperty(RwiPropertyMap element, boolean propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.canSetProperty(java.lang.String,boolean).

dependencies

public RwiElementEnumeration dependencies(RwiPropertyMap element)

getProperty

public String getProperty(RwiPropertyMap element)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.getProperty(java.lang.String).

getPropertyName

public String getPropertyName()
Return property name which this provider is responsible for.

hasProperty

public boolean hasProperty(RwiPropertyMap element)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.hasProperty(java.lang.String).

isApplicable

public boolean isApplicable(RwiPropertyMap element)
Checks does this property applicapable for specified element.
Parameters:
element Has to implement RwiPropertyMap interface.

isPropertyReadable

public boolean isPropertyReadable(RwiPropertyMap element)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.isPropertyReadable(java.lang.String).

isPropertyWritable

public boolean isPropertyWritable(RwiPropertyMap element)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.isPropertyWritable(java.lang.String).

properties

public RwiPropertyEnumeration properties(RwiPropertyMap element)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap#properties()
RwiPropertyMap.properties.

setProperty

public void setProperty(RwiPropertyMap element, String propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.setProperty(java.lang.String,java.lang.String).

setProperty

public void setProperty(RwiPropertyMap element, boolean propertyValue)
Specific method for this property.
See com.togethersoft.openapi.rwi.RwiPropertyMap.setProperty(java.lang.String,boolean).