Home | History | Annotate | Download | only in policyrep

Lines Matching defs:Range

128                         "{0} is invalid ({1} is not a valid category range)".format(sym, group))
174 """Factory function for creating MLS range objects."""
179 if isinstance(sym, Range):
183 return Range(policy, sym)
185 # build range:
193 raise exception.InvalidRange("{0} is not a valid range ({1}).".format(sym, ex))
198 raise exception.InvalidRange("{0} is not a valid range ({1}).".format(sym, ex))
202 # convert to range object
206 raise exception.InvalidRange("{0} is not a valid range ({1} is not dominated by {2})".
209 return Range(policy, policy_range)
425 class Range(symbol.PolicySymbol):
427 """An MLS range"""
456 """The high end/clearance level of this range."""
461 """The low end/current level of this range."""