Package org.xwiki.rendering.listener
Class MetaData
java.lang.Object
org.xwiki.rendering.listener.MetaData
Represents a set of MetaData.
- Since:
- 3.0M2
- Version:
- $Id: bf99a6e93d928b26e1ecbbf3b94150d7aa531201 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresent the base reference to resolve all the references in the blocks (links, images, macro parameters, etc.).static final MetaDataRepresents no MetaData.static final StringRepresents a non generated content: a content that has not been transformed in any way.static final StringRepresents a metadata attached to a specific parameter identified by the given name.static final StringRepresents a source metaData, which corresponds to the reference to the source entity containing the content to render.static final StringRepresents the syntax of the content found in macro containing wiki content (like a box macro for example). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaData(String key, Object value) voidaddMetaData(MetaData metaData) booleanbooleangetMetaData(String key) inthashCode()toString()
-
Field Details
-
EMPTY
Represents no MetaData. -
SOURCE
Represents a source metaData, which corresponds to the reference to the source entity containing the content to render. The reference is a free form text in a format that is understood by the Listeners supporting it.- See Also:
-
SYNTAX
Represents the syntax of the content found in macro containing wiki content (like a box macro for example). The value has to be aSyntaxobject.- Since:
- 3.0M3
- See Also:
-
BASE
Represent the base reference to resolve all the references in the blocks (links, images, macro parameters, etc.).- Since:
- 3.4M1
- See Also:
-
NON_GENERATED_CONTENT
Represents a non generated content: a content that has not been transformed in any way.- Since:
- 10.10
- See Also:
-
PARAMETER_NAME
Represents a metadata attached to a specific parameter identified by the given name.- Since:
- 11.1RC1
- See Also:
-
-
Constructor Details
-
MetaData
public MetaData()Empty metaData. -
MetaData
- Parameters:
metaData- the metadata to set
-
-
Method Details
-
addMetaData
- Parameters:
key- the key to the metadata element to add (e.g. "syntax")value- the value of the metadata element to add (e.g. a Syntax object)
-
addMetaData
- Parameters:
metaData- the metadata to add
-
getMetaData
- Parameters:
key- the key to the metadata element to retrieve (e.g. "syntax")- Returns:
- the metadata corresponding to the passed key of null if no such metadata exist.
-
contains
- Parameters:
key- the key to the metadata element to check for- Returns:
- true if there's a metadata with the passed key, false otherwise
- Since:
- 3.0M3
-
getMetaData
- Returns:
- all the metadata
-
equals
-
hashCode
public int hashCode() -
toString
-