public class Metadata extends Object implements UICommandMetadata
NO_DESCRIPTION| Modifier and Type | Method and Description |
|---|---|
Metadata |
category(UICategory category)
Set the
UICategory of the corresponding UICommand. |
Metadata |
deprecated(boolean deprecated)
Set the deprecated flag for this command
|
Metadata |
deprecatedMessage(String deprecatedMessage)
Set the deprecated message for this command
|
Metadata |
description(String description)
Set the description for the corresponding
UICommand. |
Metadata |
docLocation(URL docLocation)
|
static Metadata |
forCommand(Class<?> type)
Create a new
UICommandMetadata for the given UICommand type. |
static Metadata |
from(UICommandMetadata origin,
Class<? extends UICommand> type)
Create a new
UICommandMetadata implementation from the given UICommandMetadata origin, and the
given UICommand type. |
UICategory |
getCategory()
Returns the
UICategory of the corresponding UICommand. |
String |
getDeprecatedMessage()
Returns a deprecated message to be displayed when
UICommandMetadata.isDeprecated() returns
true. |
String |
getDescription()
Returns the description of the corresponding
UICommand. |
URL |
getDocLocation()
Returns the location of the documentation of the corresponding
UICommand. |
String |
getName()
Return the name of the corresponding
UICommand. |
Class<?> |
getType()
|
boolean |
isDeprecated()
Returns if this command is discouraged from using, typically because it is dangerous, or because a better
alternative exists
|
Metadata |
name(String name)
Set the name for the corresponding
UICommand. |
String |
toString() |
public static Metadata from(UICommandMetadata origin, Class<? extends UICommand> type)
UICommandMetadata implementation from the given UICommandMetadata origin, and the
given UICommand type.public static Metadata forCommand(Class<?> type)
UICommandMetadata for the given UICommand type.public Metadata description(String description)
UICommand.public Metadata category(UICategory category)
UICategory of the corresponding UICommand.public Metadata deprecated(boolean deprecated)
public Metadata deprecatedMessage(String deprecatedMessage)
public String getName()
UICommandMetadataUICommand.getName in interface UICommandMetadatapublic String getDescription()
UICommandMetadataUICommand.getDescription in interface UICommandMetadatapublic UICategory getCategory()
UICommandMetadataUICategory of the corresponding UICommand.getCategory in interface UICommandMetadatapublic URL getDocLocation()
UICommandMetadataUICommand. (can be null.)getDocLocation in interface UICommandMetadatapublic boolean isDeprecated()
UICommandMetadataisDeprecated in interface UICommandMetadatapublic String getDeprecatedMessage()
UICommandMetadataUICommandMetadata.isDeprecated() returns
true.getDeprecatedMessage in interface UICommandMetadatapublic Class<?> getType()
UICommandMetadatagetType in interface UICommandMetadataCopyright © 2015 JBoss by Red Hat. All rights reserved.