Copyright © 2013 by mTLD Top Level Domain Limited. All rights reserved.
Portions copyright © 2008 by Argo Interactive Limited.
Portions copyright © 2008 by Nokia Inc.
Portions copyright © 2008 by Telecom Italia Mobile S.p.A.
Portions copyright © 2008 by Volantis Systems Limited.
Portions copyright © 2002-2008 by Andreas Staeding.
Portions copyright © 2008 by Zandan.
dotMobi
Public constants
Public constants
Public constants
Public constants
Public constants
Public constants
Public constants
Public constants
Public constants
Public constants
Public instance variables
Public instance variables
Public instance variables
Public instance variables
# File ../Src/postwalkrules.rb, line 41 def initialize(tree, type) # Set the public constants @RULE_GROUPS = 'rg' @PROPERTY_MATCHER = 'p' @PROPERTY = 'p' @PROPERTY_VALUE = 'v' @OPERATOR = 'o' @RULE_ARR = 'r' @RULE_PROP_IDS_IN_USE = 'rpids' # calculated in init @MATCHER_PROP_IDS_IN_USE = 'mpids' # calculated in init @RULE_SET = 't' @RULE_SET_COUNT = 'tc' # calculated in init # Initialize two of the public instance variables @tree = tree @branch = tree[type] # main branch # Initialize the private instance variables @propMatcherIdsInUse = [] @rulePropIdsInUse = [] init end
Get a list of all the required properties that are needed for this class to properly run its rules.
# File ../Src/postwalkrules.rb, line 155 def getRequiredProperties @propMatcherIdsInUse end
Check if the property is used in the rules and so can be found from them. This is used in Api.getProperty() to avoid calling the methods in the class if the property that is being looked for cannot be found here.
propertyId
The ID of the property that is sought.
return
TRUE if the propertyId is used, FALSE otherwise.
# File ../Src/postwalkrules.rb, line 148 def propIsOutput(propertyId) !@rulePropIdsInUse.nil? && @rulePropIdsInUse.include?(propertyId) end
Find all the properties that are used for matching. This is needed in case the DeviceAtlas#getProperty function is called as we need these properties for the rules to work correctly.
group
The rule group that can contain a property matcher.
propIds
The list of found property IDs.
return
An updated set of property IDs.
# File ../Src/postwalkrules.rb, line 99 def initGetMatcherPropertyIds(group, propIds) raise(PostWalkRulesException, "This is an abstract method that has not been implemented.") end
Prepare the rule set
group
The current parent group.
return
A list of all rule sets.
# File ../Src/postwalkrules.rb, line 107 def initRuleSets(group) raise(PostWalkRulesException, "This is an abstract method that has not been implemented.") end