|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.xacml.util.SyntaxScheme
A parser for the syntax scheme used from the
RoleManager
to parse
conditions from the command line. The syntax scheme to define resources,
actions or conditions for permissions is defined as follows:
datatype-matchfunc[value]
Field Summary | |
(package private) List |
args
The list of arguments of a function. |
(package private) String |
function
The match function name. |
(package private) String |
functionValue
A function, which is a value of the function. |
(package private) String |
value
The value of a function. |
Constructor Summary | |
SyntaxScheme(String expression)
Creates a syntax scheme by parsing the expression argument. |
Method Summary | |
List |
getArgs()
Gets the argument list of the function. |
String |
getFunction()
Gets the function name. |
String |
getFunctionType()
Gets the datatype of the function. |
String |
getFunctionValue()
Gets the functionValue. |
String |
getValue()
Gets the value of the function. |
private int |
indexOfClosingBracket(String expression,
int iStartBracket)
Determines the index of the next closing bracket. |
private int |
indexOfNextArg(String expression,
int iStart)
Determines the index of the next argument within the given expression. |
private int |
indexOfNextBracket(String expression,
int iStartBracket)
Determines the index of the next opening or closing bracket. |
private int |
indexOfOpenBracket(String expression,
int iStart)
Determines the index of the next opening bracket. |
private void |
parse(String expression)
Parses the expression into the syntax scheme. |
private void |
parseArgs(String expression,
int iStart)
Parses the arguments of a function into the list of args . |
private int |
parseFunction(String expression,
int startInd)
Parses the next function name until the opening bracket is reached |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String function
String functionValue
String value
List args
Constructor Detail |
public SyntaxScheme(String expression)
expression
- The expression to be parsed as a syntax scheme.Method Detail |
private void parse(String expression)
expression
- The expression to be parsed as a syntax scheme.private int parseFunction(String expression, int startInd)
expression
- The expression to be parsed.startInd
- The start index within expression.
private void parseArgs(String expression, int iStart)
args
.
expression
- The expression to be parsed.iStart
- The start index within expression.private int indexOfNextArg(String expression, int iStart)
expression
- The expression to be parsed.iStart
- The start index within expression.
private int indexOfNextBracket(String expression, int iStartBracket)
expression
- The expression to be parsed.iStartBracket
- The start index within expression.
private int indexOfOpenBracket(String expression, int iStart)
expression
- The expression to be parsed.iStart
- The start index within expression.
private int indexOfClosingBracket(String expression, int iStartBracket)
expression
- The expression to be parsed.iStartBracket
- The start index within expression.
public String getFunction()
public String getFunctionType()
public String getFunctionValue()
public List getArgs()
public String getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |