com.wles.util
Class RuleParser.Privilege

java.lang.Object
  extended bycom.wles.util.RuleParser.QualifiedElement
      extended bycom.wles.util.RuleParser.Action
          extended bycom.wles.util.RuleParser.Privilege
Enclosing class:
RuleParser

public static class RuleParser.Privilege
extends RuleParser.Action

Class representation of a privilege action.


Field Summary
static java.lang.String ANY
          Special "any" privilege.
static java.lang.String QUALIFIER
          Privilege qualifier.
 
Constructor Summary
RuleParser.Privilege(java.lang.String value)
          Constuct a Privilege object for the named privilege.
 
Method Summary
 RuleParser.ActionType getActionType()
          Get the ActionType for this action.
 boolean isAnyPrivilege()
          Determine if this is the special "any" privilege.
 void validate()
          Validate that the internal string is a syntatically correct privilege.
 
Methods inherited from class com.wles.util.RuleParser.Action
parse
 
Methods inherited from class com.wles.util.RuleParser.QualifiedElement
equals, getName, getQualifiedName, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final java.lang.String ANY
Special "any" privilege.

See Also:
Constant Field Values

QUALIFIER

public static final java.lang.String QUALIFIER
Privilege qualifier.

See Also:
Constant Field Values
Constructor Detail

RuleParser.Privilege

public RuleParser.Privilege(java.lang.String value)
                     throws RuleParser.ParsingException
Constuct a Privilege object for the named privilege.

Method Detail

getActionType

public RuleParser.ActionType getActionType()
Description copied from class: RuleParser.Action
Get the ActionType for this action.

Specified by:
getActionType in class RuleParser.Action

isAnyPrivilege

public boolean isAnyPrivilege()
Determine if this is the special "any" privilege.


validate

public void validate()
              throws RuleParser.ParsingException
Validate that the internal string is a syntatically correct privilege.

Specified by:
validate in class RuleParser.QualifiedElement
Throws:
RuleParser.ParsingException


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.