org.xwiki.rendering.macro.descriptor
Class DefaultContentDescriptor

java.lang.Object
  extended by org.xwiki.rendering.macro.descriptor.DefaultContentDescriptor
All Implemented Interfaces:
ContentDescriptor

public class DefaultContentDescriptor
extends java.lang.Object
implements ContentDescriptor

The default implementation of ContentDescriptor.

Since:
1.9M1
Version:
$Id$

Constructor Summary
DefaultContentDescriptor()
          Default constructor.
DefaultContentDescriptor(boolean mandatory)
           
DefaultContentDescriptor(java.lang.String description)
           
DefaultContentDescriptor(java.lang.String description, boolean mandatory)
           
 
Method Summary
 java.lang.String getDescription()
          
 boolean isMandatory()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContentDescriptor

public DefaultContentDescriptor()
Default constructor.


DefaultContentDescriptor

public DefaultContentDescriptor(java.lang.String description)
Parameters:
description - the description of the content.

DefaultContentDescriptor

public DefaultContentDescriptor(boolean mandatory)
Parameters:
mandatory - indicate if the content is mandatory.

DefaultContentDescriptor

public DefaultContentDescriptor(java.lang.String description,
                                boolean mandatory)
Parameters:
description - the description of the content.
mandatory - indicate if the content is mandatory.
Method Detail

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface ContentDescriptor
Returns:
the description of the macro content.
See Also:
ContentDescriptor.getDescription()

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface ContentDescriptor
Returns:
indicate if the macro content is mandatory.
See Also:
ContentDescriptor.isMandatory()


Copyright © 2004-2011 XWiki. All Rights Reserved.