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 ContentDescriptor
public boolean isMandatory()
isMandatory
in interface ContentDescriptor
public Type getType()
ContentDescriptor
getType
in interface ContentDescriptor
Copyright © 2004–2022 XWiki. All rights reserved.