public class DefaultContentDescriptor extends Object implements ContentDescriptor
ContentDescriptor.| Modifier and Type | Field and Description |
|---|---|
static Type |
DEFAULT_CONTENT_TYPE
Default content type of all content descriptors.
|
| Constructor and Description |
|---|
DefaultContentDescriptor()
Default constructor.
|
DefaultContentDescriptor(boolean mandatory) |
DefaultContentDescriptor(String description) |
DefaultContentDescriptor(String description,
boolean mandatory) |
DefaultContentDescriptor(String description,
boolean mandatory,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Type |
getType()
This method will return the type of the macro content.
|
boolean |
isMandatory() |
public static final Type DEFAULT_CONTENT_TYPE
public DefaultContentDescriptor()
public DefaultContentDescriptor(String description)
description - the description of the content.public DefaultContentDescriptor(boolean mandatory)
mandatory - indicate if the content is mandatory.public DefaultContentDescriptor(String description, boolean mandatory)
description - the description of the content.mandatory - indicate if the content is mandatory.public String getDescription()
getDescription in interface ContentDescriptorpublic boolean isMandatory()
isMandatory in interface ContentDescriptorpublic Type getType()
ContentDescriptorgetType in interface ContentDescriptorCopyright © 2004–2019 XWiki. All rights reserved.