public class MetaData extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE
Represent the base reference to resolve all the references in the blocks (links, images, macro parameters, etc.).
|
static MetaData |
EMPTY
Represents no MetaData.
|
static String |
NON_GENERATED_CONTENT
Represents a non generated content: a content that has not been transformed in any way.
|
static String |
PARAMETER_NAME
Represents a metadata attached to a specific parameter identified by the given name.
|
static String |
SOURCE
Represents a source metaData, which corresponds to the reference to the source entity containing the content to
render.
|
static String |
SYNTAX
Represents the syntax of the content found in macro containing wiki content (like a box macro for example).
|
Constructor and Description |
---|
MetaData()
Empty metaData.
|
MetaData(Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
void |
addMetaData(MetaData metaData) |
void |
addMetaData(String key,
Object value) |
boolean |
contains(String key) |
boolean |
equals(Object obj) |
Map<String,Object> |
getMetaData() |
Object |
getMetaData(String key) |
int |
hashCode() |
String |
toString() |
public static final MetaData EMPTY
public static final String SOURCE
public static final String SYNTAX
Syntax
object.public static final String BASE
public static final String NON_GENERATED_CONTENT
public static final String PARAMETER_NAME
public void addMetaData(String key, Object value)
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)public void addMetaData(MetaData metaData)
metaData
- the metadata to addpublic Object getMetaData(String key)
key
- the key to the metadata element to retrieve (e.g. "syntax")public boolean contains(String key)
key
- the key to the metadata element to check forCopyright © 2004–2021 XWiki. All rights reserved.