public enum ObjectType extends Enum<ObjectType>
Operation
s, which are passed as a list to
the constructor, and can be checked using the isAllowed(Operation)
method.Enum Constant and Description |
---|
ALL |
BROKER |
EXCHANGE |
GROUP |
LINK |
MANAGEMENT |
METHOD |
QUEUE |
ROUTE |
USER |
VIRTUALHOST |
VIRTUALHOSTNODE |
Modifier and Type | Method and Description |
---|---|
Set<Operation> |
getActions() |
boolean |
isAllowed(Operation operation) |
static ObjectType |
parse(String text) |
String |
toString() |
static ObjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectType ALL
public static final ObjectType VIRTUALHOSTNODE
public static final ObjectType VIRTUALHOST
public static final ObjectType MANAGEMENT
public static final ObjectType QUEUE
public static final ObjectType EXCHANGE
public static final ObjectType LINK
public static final ObjectType ROUTE
public static final ObjectType METHOD
public static final ObjectType USER
public static final ObjectType GROUP
public static final ObjectType BROKER
public static ObjectType[] values()
for (ObjectType c : ObjectType.values()) System.out.println(c);
public static ObjectType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAllowed(Operation operation)
public static ObjectType parse(String text)
public String toString()
toString
in class Enum<ObjectType>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.