public enum ItemType extends java.lang.Enum<ItemType> implements IItemType
| Enum Constant and Description |
|---|
AGENT |
CONTAINER |
ITEM |
LINK |
METADATA |
NEWS |
NOTIFICATION |
POWER |
USER |
| Modifier and Type | Method and Description |
|---|---|
IArgList |
args() |
IItemType[] |
containerTypes() |
java.lang.String |
description() |
IFlag[] |
flags() |
java.lang.String |
generateId(IItem instance) |
IArgList |
getAllArgs() |
IItemType[] |
getAllContainerTypes() |
IItem[] |
getAllInitItems(IItem instance) |
IItem[] |
getInitItems(IItem instance) |
java.lang.String |
getInstancePath(java.lang.String id) |
static IItemType[] |
getValues() |
boolean |
hasFlag(IFlag flag) |
void |
init(IItem instance) |
IItemType |
parent() |
java.lang.String |
plural() |
static ItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.util.Map<IArg,java.lang.String> |
withArgs(java.lang.Object... values) |
public static final ItemType ITEM
public static final ItemType CONTAINER
public static final ItemType NEWS
public static final ItemType LINK
public static final ItemType NOTIFICATION
public static final ItemType METADATA
public static final ItemType POWER
public static final ItemType AGENT
public static final ItemType USER
public static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String description()
description in interface IChoicepublic IArgList getAllArgs()
getAllArgs in interface IItemTypepublic IItemType[] containerTypes()
containerTypes in interface IItemTypepublic IItemType[] getAllContainerTypes()
getAllContainerTypes in interface IItemTypepublic IItem[] getInitItems(IItem instance)
getInitItems in interface IItemTypepublic IItem[] getAllInitItems(IItem instance)
getAllInitItems in interface IItemTypepublic IFlag[] flags()
flags in interface IFlagObjectpublic boolean hasFlag(IFlag flag)
hasFlag in interface IFlagObjectpublic java.lang.String generateId(IItem instance)
generateId in interface IItemTypepublic java.util.Map<IArg,java.lang.String> withArgs(java.lang.Object... values)
public java.lang.String getInstancePath(java.lang.String id)
getInstancePath in interface IItemTypepublic static IItemType[] getValues()