|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.ParameterList
public final class ParameterList
A list of parameters.
Nested Class Summary | |
---|---|
static class |
ParameterList.Parameter
A parameter with a name and a type. |
Constructor Summary | |
---|---|
ParameterList()
Creates an empty parameter list. |
Method Summary | |
---|---|
void |
add(String name,
Class<?> type)
Adds a parameter with name and type to the end of the list. |
boolean |
contains(String name)
Returns true if a parameter contained in this. |
static ParameterList |
empty()
An empty parameter list. |
boolean |
equals(Object obj)
|
ParameterList |
getCopy()
|
String |
getName(int position)
Returns the name of parameter at position. |
int |
getParameterCount()
Returns the number of parameters. |
Class<?> |
getType(int position)
Returns the type of parameter at position. |
Class<?> |
getType(String name)
Returns the name of parameter at position. |
int |
hashCode()
|
boolean |
isValid()
Returns true if this parameter list is valid. |
Iterator<ParameterList.Parameter> |
iterator()
|
boolean |
matchesArguments(List<?> arguments)
Returns true if arguments matches parameters. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterList()
Method Detail |
---|
public static final ParameterList empty()
ParameterList
without parameters.public void add(String name, Class<?> type)
name
- a name.type
- a type.public boolean isValid()
public String getName(int position)
position
- of the parameter.
public boolean contains(String name)
name
- a name.
public Class<?> getType(int position)
position
- of the parameter.
public Class<?> getType(String name)
name
- of the parameter.
public int getParameterCount()
public boolean matchesArguments(List<?> arguments)
arguments
- a list of arguments.
public Iterator<ParameterList.Parameter> iterator()
iterator
in interface Iterable<ParameterList.Parameter>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public ParameterList getCopy()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG