public class WikiFormat extends Object
Modifier and Type | Field and Description |
---|---|
static WikiFormat |
EMPTY |
Constructor and Description |
---|
WikiFormat() |
WikiFormat(Collection<WikiParameter> params) |
WikiFormat(Set<WikiStyle> styles) |
WikiFormat(Set<WikiStyle> styles,
Collection<WikiParameter> params) |
WikiFormat(WikiStyle style) |
WikiFormat(WikiStyle[] styles) |
WikiFormat(WikiStyle style,
Collection<WikiParameter> params) |
Modifier and Type | Method and Description |
---|---|
WikiFormat |
addStyle(WikiStyle style)
Creates a new style set and adds the given style to it.
|
boolean |
equals(Object obj) |
protected WikiFormat |
getClone() |
List<WikiParameter> |
getParams() |
List<WikiStyle> |
getStyles() |
String |
getTags(boolean open)
Returns opening or closing tags corresponding to the given format(it
depends on the given flag).
|
int |
hashCode() |
boolean |
hasStyle(WikiStyle style) |
WikiFormat |
removeStyle(WikiStyle style)
Creates a new style set which does not contain the specified style.
|
WikiFormat |
setParameters(Collection<WikiParameter> params) |
WikiFormat |
switchStyle(WikiStyle wikiStyle)
Creates a new format object where the specified style is switched: if
this format contains the given style then the resulting format does not
and vice versa.
|
String |
toString() |
public static WikiFormat EMPTY
public WikiFormat()
public WikiFormat(Set<WikiStyle> styles, Collection<WikiParameter> params)
public WikiFormat(Collection<WikiParameter> params)
public WikiFormat(WikiStyle style)
public WikiFormat(WikiStyle style, Collection<WikiParameter> params)
public WikiFormat(WikiStyle[] styles)
public WikiFormat setParameters(Collection<WikiParameter> params)
public WikiFormat addStyle(WikiStyle style)
style
- the style to addpublic boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
protected WikiFormat getClone()
public String getTags(boolean open)
open
- if this flag is true
then this method returns
opening tags for this formatpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean hasStyle(WikiStyle style)
style
- the style to checktrue
if this format has the specified stylepublic WikiFormat removeStyle(WikiStyle style)
style
- the style to addpublic WikiFormat switchStyle(WikiStyle wikiStyle)
wikiStyle
- the style to switchpublic List<WikiStyle> getStyles()
public List<WikiParameter> getParams()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2004–2021 XWiki. All rights reserved.