2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #include "StorageChangesMessageFilterValidator.h"
19 #include "StorageChangesMessageFilterValidatorFactory.h"
22 using namespace DeviceAPI::Tizen;
27 StorageChangesMessageFilterValidator::StorageChangesMessageFilterValidator(PropertyStructArray properties):FilterValidator(properties){
28 m_isTypeSetted = false;
31 StorageChangesMessageFilterValidator::~StorageChangesMessageFilterValidator(){
34 bool StorageChangesMessageFilterValidator::validateAttributeRange(std::string& attrName, DeviceAPI::Tizen::AnyPtr& initialValue, DeviceAPI::Tizen::AnyPtr& endValue, int depth){
36 if(attrName.compare(StorageChangesMessageFilterValidatorFactory::ATTRIBUTE_TIMESTAMP)!=0){
37 LoggerE(">>> [ERROR] Not Supported attribute :[" << attrName << "]");
41 retVal = FilterValidator::validateAttributeRange(attrName, initialValue, endValue);
46 bool StorageChangesMessageFilterValidator::validateAttribute(std::string& attrName, DeviceAPI::Tizen::MatchFlag& matchFlag,
47 DeviceAPI::Tizen::AnyPtr& matchValue, int depth){
48 if(matchValue == NULL)
53 retBool = FilterValidator::validateAttribute(attrName, matchFlag, matchValue, depth);
54 LoggerD(">>> retBool:" << retBool);