|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IconAnnotation>
org.openpermis.editor.policy.gui.IconAnnotation
public enum IconAnnotation
Annotations for icons.
Enum Constant Summary | |
---|---|
ADD
Add annotation. |
|
DELETE
Delete annotation. |
|
EDIT
Edit annotation. |
|
WARNING
Warning sign annotation. |
Field Summary | |
---|---|
private static char |
END
End character for annotations. |
private String |
key
The annotation key. |
private static String |
SEPARATOR
Separator string for annotations. |
private static char |
START
Start character for annotations. |
Method Summary | |
---|---|
String |
annotate(String iconKey)
Annotates the specified icon key with this annotation. |
static String[] |
decompose(String iconKey)
Decomposes an annotated key into its parts. |
(package private) static IconAnnotation[] |
getAnnotations(String iconKey)
Returns an array of annotations defined in the specified icon key. |
private static IconAnnotation |
getIconAnnotation(String annotation)
Performs a lookup of an annotation. |
String |
getKey()
Returns the lower case key of the icon annotation. |
static String |
getKey(String iconKey)
Returns the key portion of a possibly annotated icon key. |
static boolean |
isAnnotated(String iconKey)
Tests if an icon key is annotated. |
(package private) boolean |
isAnnotation(String annotation)
Check if the specified annotation is string denotes the same annotation as this one. |
(package private) static String[] |
split(String iconKey)
Splits the icon key specified into a key and an annotation part. |
String |
toString()
|
static IconAnnotation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IconAnnotation[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IconAnnotation ADD
public static final IconAnnotation DELETE
public static final IconAnnotation EDIT
public static final IconAnnotation WARNING
Field Detail |
---|
private static final char START
91
private static final char END
93
private static final String SEPARATOR
","
private final String key
Method Detail |
---|
public static final IconAnnotation[] values()
for(IconAnnotation c : IconAnnotation.values()) System.out.println(c);
public static IconAnnotation valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static boolean isAnnotated(String iconKey)
iconKey
- the icon key to test.
true
if the key is annotated, false
otherwise.static final String[] split(String iconKey)
iconKey
- the icon key to split.
private static final IconAnnotation getIconAnnotation(String annotation)
annotation
- the annotation to lookup.
static IconAnnotation[] getAnnotations(String iconKey)
iconKey
- the icon key for which to retrieve the annotations.
null
.
IllegalArgumentException
- if an unknown annotation is encountered.public static String getKey(String iconKey)
iconKey
- the icon key for which to retrieve the key portion.
public static String[] decompose(String iconKey)
iconKey
- the icon key to decompose.
IllegalArgumentException
- if an unknown annotation is encountered.boolean isAnnotation(String annotation)
annotation
- the annotation to test.
true
if the annotation corresponds to this one, false
otherwise.public String annotate(String iconKey)
iconKey
- the icon key to annotate, must not be null
.
public String getKey()
public String toString()
toString
in class Enum<IconAnnotation>
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG