* @param value property value
*/
public void setProperty(String propName, String scope, String scopeValue, String value)
{
// iterate through properties list to find property
FragmentProperty fragmentProperty = null;
Iterator propertiesIter = getProperties().iterator();
while (propertiesIter.hasNext())
{
FragmentProperty findFragmentProperty = (FragmentProperty)propertiesIter.next();
if (findFragmentProperty.getName().equals(propName))
{
// compare scopes
String findFragmentPropertyScope = findFragmentProperty.getScope();
if ((scope == null) && (findFragmentPropertyScope == null))
{
fragmentProperty = findFragmentProperty;
break;
}
else if ((findFragmentPropertyScope != null) && findFragmentPropertyScope.equals(scope))
{
// default user scope value
if ((scopeValue == null) && scope.equals(USER_PROPERTY_SCOPE))
{
scopeValue = Utils.getCurrentUserScopeValue();
}
// compare scope values
String findFragmentPropertyScopeValue = findFragmentProperty.getScopeValue();
if ((findFragmentPropertyScopeValue != null) && findFragmentPropertyScopeValue.equals(scopeValue))
{
fragmentProperty = findFragmentProperty;
break;
}