|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.cli.base.CliModeContainer
public class CliModeContainer
This is a container for a CliMode together with additional associated
information.
| Field Summary | |
|---|---|
private Class<?> |
annotatedClass
|
private Set<CliModeContainer> |
extendedModes
|
private String |
id
|
private CliMode |
mode
|
private InitializationState |
state
|
| Constructor Summary | |
|---|---|
|
CliModeContainer(CliMode mode,
Class<?> annotatedClass)
The constructor. |
private |
CliModeContainer(CliMode mode,
Class<?> annotatedClass,
String id)
The constructor. |
|
CliModeContainer(String id)
The constructor for a dummy instance. |
| Method Summary | |
|---|---|
Class<?> |
getAnnotatedClass()
This method gets the Class that was annotated with the
mode. |
Set<CliModeContainer> |
getExtendedModes()
This method gets the Set of modes that are
extended by this mode
including this mode itself. |
String |
getId()
The ID of the mode. |
CliMode |
getMode()
This method gets the actual CliMode. |
InitializationState |
getState()
|
String |
getTitle()
The title of the mode. |
void |
setState(InitializationState state)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final String id
getId()private final CliMode mode
getMode()private final Class<?> annotatedClass
getAnnotatedClass()private final Set<CliModeContainer> extendedModes
getExtendedModes()private InitializationState state
getState()| Constructor Detail |
|---|
public CliModeContainer(String id)
id - is the ID.
public CliModeContainer(CliMode mode,
Class<?> annotatedClass)
mode - is the mode.annotatedClass - is the annotated class.
private CliModeContainer(CliMode mode,
Class<?> annotatedClass,
String id)
mode - is the mode.annotatedClass - is the annotated class.id - is the ID.| Method Detail |
|---|
public String getId()
ID of the mode.CliModeObject.getMode() may return
null.
getId in interface CliModeObjectpublic String getTitle()
title of the mode. If the
title is NOT set, the ID is returnedCliModeObject.getMode() may return
null.
getTitle in interface CliModeObjectID if title is NOT set.public CliMode getMode()
CliMode.
getMode in interface CliModeObjectCliMode or null if no CliMode
annotation was present.public Class<?> getAnnotatedClass()
Class that was annotated with the
mode.
getAnnotatedClass in interface CliModeObjectClass or null if
CliModeObject.getMode() is null.public Set<CliModeContainer> getExtendedModes()
Set of modes that are
extended by this mode
including this mode itself.
getExtendedModes in interface CliModeObjectmodes including this
mode itself.public InitializationState getState()
public void setState(InitializationState state)
state - is the state to setpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||